You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
798 B

FROM node:10-alpine as build
# args
ARG version="0.1.0"
ARG repo=""
ENV VUE_APP_SOURCE_LINK="https://${repo}"
# dependencies
RUN apk add --no-cache git
# source
COPY . .
# build
RUN yarn install
RUN yarn build
FROM productionwentdown/caddy:0.11.0 as caddy
FROM alpine:3.8
ARG version
# labels
LABEL org.label-schema.vcs-url=""
LABEL org.label-schema.version=${version}
LABEL org.label-schema.schema-version="1.0"
# copy build output
COPY --from=build /app/dist /srv
# copy caddy
COPY --from=caddy /bin/caddy /usr/local/bin/caddy
# copy
COPY /usr/local/bin/
CMD ["caddy", "-conf", "/etc/Caddyfile"]