mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
584 B
Docker
38 lines
584 B
Docker
From alpine:latest as builder
|
|
|
|
ARG VERSION=v0.0.0
|
|
|
|
WORKDIR /synctv
|
|
|
|
COPY ./ ./
|
|
|
|
RUN apk add --no-cache bash curl gcc git go musl-dev
|
|
|
|
RUN bash build.sh -P -v ${VERSION} -b build
|
|
|
|
From alpine:latest
|
|
|
|
WORKDIR /opt/synctv
|
|
|
|
ENV SERVER_LISTEN=0.0.0.0
|
|
|
|
ENV SERVER_PORT=8080
|
|
|
|
COPY --from=builder /synctv/build/synctv /usr/local/bin/synctv
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
RUN apk add --no-cache bash ca-certificates su-exec tzdata
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENV PUID=0 PGID=0 UMASK=022
|
|
|
|
WORKDIR /opt/synctv
|
|
|
|
EXPOSE 8080/tcp 8080/udp
|
|
|
|
VOLUME [ "/opt/synctv" ]
|
|
|
|
CMD [ "/entrypoint.sh" ]
|