Skip to content

Commit

Permalink
Fix: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Apr 10, 2024
1 parent 8e3499e commit 97c81ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From alpine:latest as builder
FROM alpine:latest as builder

ARG VERSION=dev

Expand All @@ -16,18 +16,18 @@ RUN bash script/build.sh -Mv ${VERSION} \
-f "gcc -static" -F "g++ -static" \
-m '-a -v'

From alpine:latest
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 &&
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 &&
RUN chmod +x /entrypoint.sh && \
mkdir -p /root/.synctv

WORKDIR /root/.synctv
Expand Down

0 comments on commit 97c81ed

Please sign in to comment.