test/Dockerfile.db
ston1th 1593c6fd16
All checks were successful
the build was successful
fixed srv
2019-01-18 23:31:49 +01:00

11 lines
310 B
Text

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