diff --git a/CONTRIBUTORS b/CONTRIBUTORS index daf37166e9..86af3cd7e5 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -203,6 +203,7 @@ hideo aoyama Ross Brown 🦙 Lukas Sommer +Omar Kohl ******************** diff --git a/docs/syncserver/Dockerfile b/docs/syncserver/Dockerfile index 21e343ca63..b313148e99 100644 --- a/docs/syncserver/Dockerfile +++ b/docs/syncserver/Dockerfile @@ -11,6 +11,8 @@ anki-sync-server FROM alpine:3.20.2 +ARG SYNC_PORT=8080 + RUN adduser -D -h /home/anki anki COPY --from=builder /anki-server/bin/anki-sync-server /usr/local/bin/anki-sync-server @@ -20,7 +22,7 @@ RUN apk update && apk add --no-cache bash && rm -rf /var/cache/apk/* USER anki -ENV SYNC_PORT=${SYNC_PORT:-"8080"} +ENV SYNC_PORT=${SYNC_PORT} EXPOSE ${SYNC_PORT} diff --git a/docs/syncserver/Dockerfile.distroless b/docs/syncserver/Dockerfile.distroless index 6bfdf9e072..0f19fa6100 100644 --- a/docs/syncserver/Dockerfile.distroless +++ b/docs/syncserver/Dockerfile.distroless @@ -11,9 +11,11 @@ anki-sync-server FROM gcr.io/distroless/cc-debian12 +ARG SYNC_PORT=8080 + COPY --from=builder /anki-server/bin/anki-sync-server /usr/bin/anki-sync-server -ENV SYNC_PORT=${SYNC_PORT:-"8080"} +ENV SYNC_PORT=${SYNC_PORT} EXPOSE ${SYNC_PORT} @@ -24,4 +26,4 @@ CMD ["anki-sync-server"] HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD ["anki-sync-server", "--healthcheck"] -LABEL maintainer="Jean Khawand " \ No newline at end of file +LABEL maintainer="Jean Khawand "