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.
42 lines
698 B
Docker
42 lines
698 B
Docker
From alpine:latest as builder
|
|
|
|
ARG VERSION=dev
|
|
|
|
ARG SKIP_INIT_WEB
|
|
|
|
ENV SKIP_INIT_WEB=${SKIP_INIT_WEB}
|
|
|
|
WORKDIR /synctv
|
|
|
|
COPY ./ ./
|
|
|
|
RUN apk add --no-cache bash curl git go g++
|
|
|
|
RUN bash script/build.sh -Mv ${VERSION} \
|
|
-f "gcc -static" -F "g++ -static" \
|
|
-m '-a -v'
|
|
|
|
From alpine:latest
|
|
|
|
ENV PUID=0 PGID=0 UMASK=022
|
|
|
|
COPY --from=builder /synctv/build/synctv /usr/local/bin/synctv
|
|
|
|
RUN apk add --no-cache bash ca-certificates su-exec tzdata &&
|
|
rm -rf /var/cache/apk/*
|
|
|
|
COPY script/entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod +x /entrypoint.sh &&
|
|
mkdir -p /root/.synctv
|
|
|
|
WORKDIR /root/.synctv
|
|
|
|
EXPOSE 8080/tcp
|
|
|
|
VOLUME [ "/root/.synctv" ]
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
|
|
|
CMD [ "server" ]
|