mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-10-29 17:50: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
|
LABEL org.opencontainers.image.source github.com/akpw/mktxp
|
||||||
WORKDIR /mktxp
|
WORKDIR /mktxp
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pip install ./ && apk add nano
|
RUN pip install ./ && apk add nano
|
||||||
EXPOSE 49090
|
EXPOSE 49090
|
||||||
|
RUN addgroup -S mktxp && adduser -S mktxp -G mktxp
|
||||||
|
USER mktxp
|
||||||
ENTRYPOINT ["/usr/local/bin/mktxp"]
|
ENTRYPOINT ["/usr/local/bin/mktxp"]
|
||||||
CMD ["export"]
|
CMD ["export"]
|
||||||
|
|||||||
Reference in New Issue
Block a user