switched to much smaller alpine image since golang not required at runtime
This commit is contained in:
parent
5039853edc
commit
f2a07db23a
@ -20,12 +20,13 @@ RUN mkdir /stage && \
|
|||||||
/go/src/app/keys \
|
/go/src/app/keys \
|
||||||
/stage && ls -l /stage
|
/stage && ls -l /stage
|
||||||
|
|
||||||
FROM golang:1.11.2-alpine3.8
|
FROM alpine:3.8
|
||||||
|
|
||||||
COPY --from=build --chown=daemon:daemon /stage /go
|
COPY --from=build --chown=daemon:daemon /stage /go
|
||||||
|
|
||||||
|
WORKDIR /go
|
||||||
VOLUME /go/keys
|
VOLUME /go/keys
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
USER daemon
|
USER daemon
|
||||||
|
|
||||||
CMD ["writefreely"]
|
CMD ["bin/writefreely"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user