Use alpine for v2 experimental images.
This commit is contained in:
parent
7536f5e83c
commit
2036518813
1 changed files with 6 additions and 4 deletions
|
@ -7,8 +7,8 @@ RUN mkdir -p $WEBUI_DIR
|
||||||
COPY ./webui/ $WEBUI_DIR/
|
COPY ./webui/ $WEBUI_DIR/
|
||||||
|
|
||||||
WORKDIR $WEBUI_DIR
|
WORKDIR $WEBUI_DIR
|
||||||
RUN npm install
|
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# BUILD
|
# BUILD
|
||||||
|
@ -38,10 +38,12 @@ COPY --from=webui /src/static/ /go/src/github.com/containous/traefik/static/
|
||||||
RUN ./script/make.sh generate binary
|
RUN ./script/make.sh generate binary
|
||||||
|
|
||||||
## IMAGE
|
## IMAGE
|
||||||
FROM scratch
|
FROM alpine:3.10
|
||||||
|
|
||||||
|
RUN apk --no-cache --no-progress add bash curl ca-certificates tzdata \
|
||||||
|
&& update-ca-certificates \
|
||||||
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
COPY --from=gobuild /usr/share/zoneinfo /usr/share/zoneinfo
|
|
||||||
COPY --from=gobuild /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
||||||
COPY --from=gobuild /go/src/github.com/containous/traefik/dist/traefik /
|
COPY --from=gobuild /go/src/github.com/containous/traefik/dist/traefik /
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
Loading…
Reference in a new issue