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

53 lines
940 B
Docker

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