fixed srv
All checks were successful
the build was successful

This commit is contained in:
ston1th 2019-01-18 23:31:49 +01:00
commit 1593c6fd16
2 changed files with 7 additions and 7 deletions

View file

@ -1,11 +1,11 @@
FROM alpine
ADD srv /srv
ADD srv /main
RUN echo -e "root:x:0:0:root:/:\nappuser:x:1000:1000:appuser:/:" > /etc/passwd
RUN echo -e "root:x:0:root\nappuser:x:1000:" > /etc/group
FROM alpine
COPY --from=0 /srv /srv
FROM scratch
COPY --from=0 /main /main
COPY --from=0 /etc/passwd /etc/
COPY --from=0 /etc/group /etc/
USER appuser
EXPOSE 8080
ENTRYPOINT ["/srv"]
ENTRYPOINT ["/main"]