Improve Dockerfile
the build was successful
Details
the build was successful
Details
parent
82283461da
commit
19100d9e15
|
@ -7,7 +7,7 @@ ENV VUE_APP_VERSION=${version}
|
||||||
ENV VUE_APP_SOURCE_LINK="https://${repo}"
|
ENV VUE_APP_SOURCE_LINK="https://${repo}"
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git=2.18.0-r0
|
||||||
|
|
||||||
# source
|
# source
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -18,6 +18,9 @@ RUN yarn install
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
|
|
||||||
|
FROM productionwentdown/caddy:0.11.0 as caddy
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:3.8
|
FROM alpine:3.8
|
||||||
|
|
||||||
ARG version
|
ARG version
|
||||||
|
@ -30,7 +33,7 @@ LABEL org.label-schema.schema-version="1.0"
|
||||||
# copy build output
|
# copy build output
|
||||||
COPY --from=build /app/dist /srv
|
COPY --from=build /app/dist /srv
|
||||||
# copy caddy
|
# 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
|
||||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue