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.
synctv/Dockerfile

40 lines
723 B
Docker

3 months ago
FROM golang:1.23-alpine AS builder
2 months ago
ARG VERSION
WORKDIR /synctv
COPY ./ ./
RUN apk add --no-cache bash curl git g++
4 months ago
RUN curl -sL \
https://raw.githubusercontent.com/zijiren233/go-build-action/refs/tags/v1/build.sh | \
bash -s -- \
--version=${VERSION} \
2 months ago
--bin-name-no-suffix
11 months ago
FROM alpine:latest
ENV PUID=0 PGID=0 UMASK=022
COPY --from=builder /synctv/build/synctv /usr/local/bin/synctv
11 months ago
RUN apk add --no-cache bash ca-certificates su-exec tzdata && \
rm -rf /var/cache/apk/*
COPY script/entrypoint.sh /entrypoint.sh
11 months ago
RUN chmod +x /entrypoint.sh && \
mkdir -p /root/.synctv
WORKDIR /root/.synctv
EXPOSE 8080/tcp
VOLUME [ "/root/.synctv" ]
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "server" ]