Disable running app as root

This commit is contained in:
Michał Sochoń
2022-04-05 14:07:39 +02:00
parent 4962efd2a7
commit 3aed18c233
2 changed files with 8 additions and 1 deletions

5
.dockerignore Normal file
View File

@@ -0,0 +1,5 @@
.git
.gitignore
.dockerignore
Dockerfile
k8s

View File

@@ -2,7 +2,9 @@ FROM python:3-alpine
LABEL org.opencontainers.image.source github.com/akpw/mktxp
WORKDIR /mktxp
COPY . .
RUN pip install ./ && apk add nano
RUN pip install ./ && apk add nano
EXPOSE 49090
RUN addgroup -S mktxp && adduser -S mktxp -G mktxp
USER mktxp
ENTRYPOINT ["/usr/local/bin/mktxp"]
CMD ["export"]