Merge pull request #24 from nvtkaszpir/rootless

Disable running app as root
This commit is contained in:
Arseniy Kuznetsov
2022-08-29 10:32:20 +01:00
committed by GitHub
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

@@ -4,5 +4,7 @@ WORKDIR /mktxp
COPY . .
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"]