mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-10-28 17:20:23 +00:00
Disable running app as root
This commit is contained in:
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@@ -0,0 +1,5 @@
|
||||
.git
|
||||
.gitignore
|
||||
.dockerignore
|
||||
Dockerfile
|
||||
k8s
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user