Skip to content

Commit b13ac10

Browse files
committed
Remove arg for anki version, add non-root user
1 parent 188252a commit b13ac10

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Python.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FROM python:3.13-bookworm
22

3-
ARG ANKI_VERSION="23.12"
4-
53
EXPOSE 8080
64

75
ENV SYNC_USER1="anki:ikna"
@@ -17,4 +15,7 @@ RUN mkdir /data && \
1715
python3 -m venv syncserver && \
1816
syncserver/bin/pip install anki
1917

18+
RUN useradd --create-home syncer
19+
USER syncer
20+
2021
ENTRYPOINT ["syncserver/bin/python", "-m", "anki.syncserver"]

0 commit comments

Comments
 (0)