Skip to content

Commit 315a644

Browse files
Merge main into bump-pycord
2 parents db105d6 + 55b5604 commit 315a644

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,17 @@ COPY cogs/ /app/cogs/
2222

2323
FROM python:3.13-slim-trixie
2424

25+
RUN groupadd --system --gid 999 nonroot && useradd --system --gid 999 --uid 999 --create-home nonroot
26+
2527
LABEL org.opencontainers.image.source=https://github.com/CSSUoB/TeX-Bot-Py-V2
2628
LABEL org.opencontainers.image.licenses=Apache-2.0
2729

28-
COPY --from=builder --chown=app:app /app /app
30+
COPY --from=builder --chown=nonroot:nonroot /app /app
2931

3032
ENV LANG=C.UTF-8 PATH="/app/.venv/bin:$PATH"
3133

3234
WORKDIR /app
3335

36+
USER nonroot
37+
3438
ENTRYPOINT ["python", "-m", "main"]

0 commit comments

Comments
 (0)