1
0
Fork 0

Improve Dockerfile
the build was successful Details

pull/2/head
Ambrose Chua 2018-09-27 13:43:05 +08:00
parent 82283461da
commit 19100d9e15
1 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,7 @@ ENV VUE_APP_VERSION=${version}
ENV VUE_APP_SOURCE_LINK="https://${repo}"
# dependencies
RUN apk add --no-cache git
RUN apk add --no-cache git=2.18.0-r0
# source
WORKDIR /app
@ -18,6 +18,9 @@ RUN yarn install
RUN yarn build
FROM productionwentdown/caddy:0.11.0 as caddy
FROM alpine:3.8
ARG version
@ -30,7 +33,7 @@ LABEL org.label-schema.schema-version="1.0"
# copy build output
COPY --from=build /app/dist /srv
# copy caddy
COPY --from=productionwentdown/caddy:0.11.0 /bin/caddy /usr/local/bin/caddy
COPY --from=caddy /bin/caddy /usr/local/bin/caddy
# copy entrypoint.sh
COPY entrypoint.sh /usr/local/bin/entrypoint.sh