use website docker image

This commit is contained in:
Karol Wypchlo 2022-04-07 14:12:24 +02:00
parent e7183f471b
commit d577f332b6
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
2 changed files with 16 additions and 8 deletions

View File

@ -82,9 +82,11 @@ services:
- website - website
website: website:
build: # uncomment "build" and comment out "image" to build from sources
context: ./packages/website # build:
dockerfile: Dockerfile # context: https://github.com/SkynetLabs/skynet-webportal.git#master
# dockerfile: ./packages/website/Dockerfile
image: skynetlabs/website
container_name: website container_name: website
restart: unless-stopped restart: unless-stopped
logging: *default-logging logging: *default-logging

View File

@ -4,16 +4,22 @@ RUN apk add --no-cache autoconf=2.71-r0 automake=1.16.4-r1 build-base=0.5-r2 lib
WORKDIR /usr/app WORKDIR /usr/app
COPY package.json yarn.lock ./ COPY packages/website/package.json packages/website/yarn.lock ./
ENV GATSBY_TELEMETRY_DISABLED 1 ENV GATSBY_TELEMETRY_DISABLED 1
ENV CYPRESS_INSTALL_BINARY 0 ENV CYPRESS_INSTALL_BINARY 0
RUN yarn --frozen-lockfile RUN yarn --frozen-lockfile
COPY data ./data COPY packages/website/data ./data
COPY src ./src COPY packages/website/src ./src
COPY static ./static COPY packages/website/static ./static
COPY gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-ssr.js postcss.config.js tailwind.config.js ./ COPY packages/website/gatsby-browser.js \
packages/website/gatsby-config.js \
packages/website/gatsby-node.js \
packages/website/gatsby-ssr.js \
packages/website/postcss.config.js \
packages/website/tailwind.config.js \
./
RUN yarn build RUN yarn build