File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,14 @@ WORKDIR /src/metapkg
22
22
RUN poetry export --only app_dl_os_control_api --without-hashes --format=requirements.txt > requirements.txt
23
23
RUN pip install -r requirements.txt
24
24
25
+ # Setting up the runtime user
26
+ ARG USER=app
27
+ ARG GID=1000
28
+ ARG UID=1000
29
+ RUN groupadd -r -g ${GID} ${USER} && \
30
+ useradd -mr -g ${USER} -u ${UID} -s /bin/bash ${USER}
31
+ USER ${USER}
32
+
25
33
EXPOSE 8080
26
34
27
35
ENTRYPOINT ["/etc/service/dl_api/run" ]
Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ WORKDIR /src/metapkg
26
26
RUN poetry export --only app_dl_os_data_api --without-hashes --format=requirements.txt > requirements.txt
27
27
RUN pip install -r requirements.txt
28
28
29
+ # Setting up the runtime user
30
+ ARG USER=app
31
+ ARG GID=1000
32
+ ARG UID=1000
33
+ RUN groupadd -r -g ${GID} ${USER} && \
34
+ useradd -mr -g ${USER} -u ${UID} -s /bin/bash ${USER}
35
+ USER ${USER}
36
+
29
37
EXPOSE 8080
30
38
31
39
ENTRYPOINT ["/etc/service/dl_api/run" ]
You can’t perform that action at this time.
0 commit comments