Update Dockerfile, add user
This commit is contained in:
parent
bd991183ee
commit
5d9e2edcf0
@ -1,7 +1,13 @@
|
||||
FROM python:3.12-alpine
|
||||
|
||||
RUN useradd -m pgadmin-config-creator
|
||||
USER pgadmin-config-creator
|
||||
|
||||
RUN mkdir /app
|
||||
RUN mkdir /config
|
||||
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["python", "app.py"]
|
||||
HEALTHCHECK CMD test -f /config/servers.json || exit 1
|
||||
HEALTHCHECK CMD test -f /config/servers.json || exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user