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.
skynet-webportal/packages/website/Dockerfile

28 lines
492 B
Docker
Raw Normal View History

2021-04-29 15:57:32 +00:00
FROM node:16.0.0-alpine
2021-03-23 12:07:19 +00:00
RUN apk update && apk add autoconf automake build-base libtool nasm pkgconfig
WORKDIR /usr/app
COPY package.json .
2021-04-16 11:05:55 +00:00
COPY package-lock.json .
2021-03-23 12:07:19 +00:00
ENV GATSBY_TELEMETRY_DISABLED 1
2021-04-16 10:35:10 +00:00
RUN npm i
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-03-23 12:07:19 +00:00
COPY gatsby-browser.js .
COPY gatsby-config.js .
COPY gatsby-node.js .
COPY gatsby-ssr.js .
COPY postcss.config.js .
COPY tailwind.config.js .
2021-04-01 12:04:20 +00:00
RUN npm run build
EXPOSE 9000
2021-04-01 20:42:46 +00:00
CMD ["sh", "-c", "npm run serve -- --host 0.0.0.0"]