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.
2022-03-21 12:46:03 +00:00
|
|
|
FROM node:16.14.2-alpine
|
2021-03-23 12:07:19 +00:00
|
|
|
|
2022-03-31 10:10:00 +00:00
|
|
|
RUN apk add --no-cache autoconf=2.71-r0 automake=1.16.4-r1 build-base=0.5-r2 libtool=2.4.6-r7 nasm=2.15.05-r0 pkgconfig=1.8.0-r0 && \
|
|
|
|
rm -rf /var/cache/apk/*
|
2021-03-23 12:07:19 +00:00
|
|
|
|
|
|
|
WORKDIR /usr/app
|
|
|
|
|
2021-07-26 12:00:20 +00:00
|
|
|
COPY package.json yarn.lock ./
|
2021-03-23 12:07:19 +00:00
|
|
|
|
|
|
|
ENV GATSBY_TELEMETRY_DISABLED 1
|
2021-07-12 09:59:21 +00:00
|
|
|
ENV CYPRESS_INSTALL_BINARY 0
|
2021-07-26 17:06:15 +00:00
|
|
|
RUN yarn --frozen-lockfile
|
2021-03-23 12:07:19 +00:00
|
|
|
|
2021-04-01 12:04:20 +00:00
|
|
|
COPY data ./data
|
2021-03-23 12:07:19 +00:00
|
|
|
COPY src ./src
|
2021-04-01 12:04:20 +00:00
|
|
|
COPY static ./static
|
2021-07-26 12:00:20 +00:00
|
|
|
COPY gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-ssr.js postcss.config.js tailwind.config.js ./
|
2021-03-23 12:07:19 +00:00
|
|
|
|
2021-07-26 11:28:27 +00:00
|
|
|
RUN yarn build
|
2021-04-01 12:04:20 +00:00
|
|
|
|
|
|
|
EXPOSE 9000
|
|
|
|
|
2021-07-26 11:28:27 +00:00
|
|
|
CMD ["sh", "-c", "yarn serve --host 0.0.0.0"]
|