Skip to content

Optimize Dockerfile #6

@m-a-v

Description

@m-a-v

Just as a suggestion ...

In docker-compose.yml one would need to add a valid local.json file.

volumes:
  - ./data/local.json:/opt/hls-proxy/local.json
FROM alpine:3.15

ENV HLS_PROXY_VERSION=8.0.7

RUN apk add unzip wget \
        && wget -O /tmp/hlsproxy.zip https://www.hls-proxy.com/downloads/${HLS_PROXY_VERSION}/hls-proxy-${HLS_PROXY_VERSION}.alpine-x64.zip -O /tmp/hls-proxy.zip \
        && mkdir -p /opt/hls-proxy \
        && unzip /tmp/hls-proxy.zip -d /opt/hls-proxy \
        && chmod +x /opt/hls-proxy/hls-proxy \
        && /opt/hls-proxy/hls-proxy -address 0.0.0.0 -port 8085 -save -quit \
        && rm /tmp/hls-proxy.zip

EXPOSE 8085

# serve hls proxy
ENTRYPOINT ["/opt/hls-proxy/hls-proxy"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions