build from alpine instead of scratch

This commit is contained in:
Matt Burchett 2021-02-04 01:45:50 -06:00
parent 088eabf033
commit fd947ac105

View File

@ -4,6 +4,6 @@ WORKDIR /root/
COPY . /root/ COPY . /root/
RUN go build -o /root/matrix-handler cmd/svr/main.go RUN go build -o /root/matrix-handler cmd/svr/main.go
FROM scratch FROM alpine
COPY --from=build /root/matrix-handler /bin/matrix-handler COPY --from=build /root/matrix-handler /bin/matrix-handler
ENTRYPOINT ["/bin/matrix-handler"] ENTRYPOINT ["/bin/matrix-handler"]