Skip to content

Commit

Permalink
Fix issues with Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
johntwyman committed Jul 11, 2024
1 parent e047fff commit 773e9dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ ARG BUILDER_IMAGE=node:20.11.1
ARG RUNTIME_IMAGE=node:20.11.1-alpine
ARG PHONE_NUMBER_COUNTRY=US

FROM ${BUILDER_IMAGE} as builder
FROM ${BUILDER_IMAGE} AS builder

ENV NODE_ENV=production \
OUTPUT_DIR=./build \
ASSETS_DIR=./build/client/assets \
ASSETS_MAP_FILE=assets.json \
PHONE_NUMBER_COUNTRY=${PHONE_NUMBER_COUNTRY}
PHONE_NUMBER_COUNTRY=US

COPY . /spoke
WORKDIR /spoke
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && \
yarn add -D webpack-cli && \
yarn run prod-build && \
rm -rf node_modules && \
yarn install --production --ignore-scripts
Expand Down

0 comments on commit 773e9dd

Please sign in to comment.