test/Dockerfile.srv
ston1th 5d82f7fa4e
Some checks failed
the build failed
fix dockerfile
2018-12-24 15:37:14 +01:00

11 lines
307 B
Text

FROM alpine
ADD srv /srv
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 scratch
COPY --from=0 /srv /srv
COPY --from=0 /etc/passwd /etc/
COPY --from=0 /etc/group /etc/
USER appuser
EXPOSE 8080
ENTRYPOINT ["/srv"]