Skip to content

Commit 108c0ba

Browse files
committed
Fix Dockerfile permissions
1 parent 0bdad39 commit 108c0ba

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docker/Dockerfile.scheduler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
3030
FROM base AS prod
3131

3232
COPY --link --from=builder /app/.venv/ /app/.venv/
33-
COPY ./syncmaster/ /app/syncmaster/
33+
COPY --chmod=755 ./syncmaster/ /app/syncmaster/
3434
RUN python -m compileall -b /app/syncmaster
3535

3636
# Do not run production as root, to improve security.

docker/Dockerfile.server

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ ENV PYTHONPATH=/app \
1616
COPY ./docs/_static/*.svg /app/syncmaster/server/static/
1717

1818
# Swagger UI
19-
ADD --chmod=644 https://cdn.jsdelivr.net/npm/swagger-ui-dist@latest/swagger-ui-bundle.js https://cdn.jsdelivr.net/npm/swagger-ui-dist@latest/swagger-ui.css \
19+
ADD --chmod=755 https://cdn.jsdelivr.net/npm/swagger-ui-dist@latest/swagger-ui-bundle.js https://cdn.jsdelivr.net/npm/swagger-ui-dist@latest/swagger-ui.css \
2020
/app/syncmaster/server/static/swagger/
2121

2222
# Redoc
23-
ADD --chmod=644 https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js /app/syncmaster/server/static/redoc/redoc.standalone.js
23+
ADD --chmod=755 https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js /app/syncmaster/server/static/redoc/redoc.standalone.js
2424

2525
ENV SYNCMASTER__SERVER__OPENAPI__SWAGGER__JS_URL=/static/swagger/swagger-ui-bundle.js \
2626
SYNCMASTER__SERVER__OPENAPI__SWAGGER__CSS_URL=/static/swagger/swagger-ui.css \
@@ -51,7 +51,7 @@ FROM base AS prod
5151

5252
COPY --link --from=builder /app/.venv/ /app/.venv/
5353

54-
COPY ./syncmaster/ /app/syncmaster/
54+
COPY --chmod=755 ./syncmaster/ /app/syncmaster/
5555
RUN python -m compileall -b /app/syncmaster
5656

5757
# Do not run production as root, to improve security.

docker/Dockerfile.worker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ COPY --link --from=ivy2_packages /home/syncmaster/.ivy2/ /home/syncmaster/.ivy2/
9999
# If someone needs to use worker image with root user, use the same jars
100100
RUN mkdir -p /root && ln -s /home/syncmaster/.ivy2 /root/.ivy2_packages
101101

102-
COPY ./syncmaster/ /app/syncmaster/
102+
COPY --chmod=755 ./syncmaster/ /app/syncmaster/
103103
RUN python -m compileall /app/syncmaster
104104
# Do not run production as root, to improve security.
105105
# Also user does not own anything inside the image, including venv and source code.

0 commit comments

Comments
 (0)