-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 778 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.13-slim
WORKDIR /opt/app
ENV APP_USER=dvtools
ENV APP_UID=40088
ENV APP_GROUP=dpgdil
ENV APP_GID=105
RUN groupadd --system --gid $APP_UID $APP_USER \
&& groupadd --system --gid $APP_GID $APP_GROUP \
&& useradd --home-dir /opt/app --system --uid $APP_UID --gid $APP_UID -G $APP_GROUP $APP_USER
RUN chown -R $APP_USER:$APP_USER /opt/app
USER $APP_USER:$APP_GROUP
# Install python-dvuploader dependencies
COPY --chown=$APP_USER requirements.txt .
RUN pip install -r requirements.txt
ENV PATH="/opt/app/.local/bin:$PATH"
# Install scripts (so they can be more easily installed on the host)
COPY --chown=$APP_USER scripts /opt/app/scripts
# Smell-check the installation
RUN dvuploader --help && \
ls -l /opt/app/scripts
ENTRYPOINT [ "dvuploader" ]