This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-06-22 09:54:01 +00:00
|
|
|
FROM node:12.18.0 AS client-builder
|
|
|
|
|
|
|
|
COPY src ./src
|
|
|
|
COPY static ./static
|
|
|
|
COPY gatsby-config.js .
|
|
|
|
COPY package.json .
|
|
|
|
COPY yarn.lock .
|
|
|
|
|
2020-07-08 12:09:21 +00:00
|
|
|
ENV CYPRESS_INSTALL_BINARY 0
|
2020-06-22 09:54:01 +00:00
|
|
|
RUN yarn --frozen-lockfile
|
|
|
|
RUN yarn build
|
|
|
|
|
2020-07-16 11:08:35 +00:00
|
|
|
FROM caddy:2.1.1-builder AS caddy-builder
|
2020-06-22 09:54:01 +00:00
|
|
|
|
|
|
|
RUN caddy-builder github.com/caddy-dns/cloudflare
|
|
|
|
|
2020-07-16 11:08:35 +00:00
|
|
|
FROM caddy:2.1.1
|
2020-06-22 09:54:01 +00:00
|
|
|
|
|
|
|
COPY --from=client-builder /public /home/user/public_html
|
|
|
|
COPY --from=caddy-builder /usr/bin/caddy /usr/bin/caddy
|