Update Dockerfile, add user

This commit is contained in:
Elliot Matson 2024-05-09 19:27:40 -05:00 committed by GitHub
parent bd991183ee
commit 5d9e2edcf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,13 @@
FROM python:3.12-alpine FROM python:3.12-alpine
RUN useradd -m pgadmin-config-creator
USER pgadmin-config-creator
RUN mkdir /app RUN mkdir /app
RUN mkdir /config RUN mkdir /config
COPY . /app COPY . /app
WORKDIR /app WORKDIR /app
CMD ["python", "app.py"] CMD ["python", "app.py"]
HEALTHCHECK CMD test -f /config/servers.json || exit 1 HEALTHCHECK CMD test -f /config/servers.json || exit 1