We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e602d3e commit e52756eCopy full SHA for e52756e
Dockerfile
@@ -1,8 +1,24 @@
1
FROM python:3.13-slim
2
WORKDIR /opt/app
3
4
+ENV APP_USER=dvtools
5
+ENV APP_UID=40088
6
+
7
+ENV APP_GROUP=dpgdil
8
+ENV APP_GID=105
9
10
+RUN groupadd --system --gid $APP_UID $APP_USER \
11
+ && groupadd --system --gid $APP_GID $APP_GROUP \
12
+ && useradd --home-dir /opt/app --system --uid $APP_UID --gid $APP_USER -G $APP_GROUP $APP_USER
13
14
+RUN chown -R $APP_USER:$APP_USER /opt/app
15
16
+USER $APP_USER:$APP_GROUP
17
18
# Install python-dvuploader dependencies
-COPY requirements.txt .
19
+COPY --chown=$APP_USER requirements.txt .
20
RUN pip install -r requirements.txt
21
-ENTRYPOINT [ "dvuploader" ]
22
+ENV PATH="/opt/app/.local/bin:$PATH"
23
24
+ENTRYPOINT [ "dvuploader" ]
0 commit comments