Skip to content

Commit 64b4db8

Browse files
authored
fix: adduser to dockerfile
1 parent 0d7945b commit 64b4db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ COPY *.py /app
99
COPY schemata /app
1010
COPY scraping_config.yaml /app
1111

12-
1312
ENV CONFLUENCE_URL ""
1413
ENV CONFLUENCE_LOGIN ""
1514
ENV CONFLUENCE_PASSWORD ""
@@ -19,7 +18,8 @@ ENV GIT_HUB_OWNER ""
1918
ENV GIT_HUB_REPO ""
2019
ENV GIT_HUB_HOSTNAME "" # for on premise github enterprise
2120

22-
USER 1000
21+
RUN adduser collector -u 1000 --home /app --disabled-password --gecos '' --shell /bin/bash
22+
USER collector
2323

2424
ENTRYPOINT ["python3", "/app/confluence_collector.py"]
2525
CMD [ "/app/scraping_config.yaml" ]

0 commit comments

Comments
 (0)