Skip to content

Commit

Permalink
Debugging tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tdonohue committed Nov 22, 2023
1 parent a32ed6b commit 862a99e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ COPY package.json yarn.lock ./
ARG TARGETARCH
ARG TARGETOS
ENV npm_config_arch=$TARGETARCH
ENV npm_config_target_platform=$TARGETOS
RUN echo "Building for ${TARGETARCH} ${TARGETOS}"
RUN yarn install --network-timeout 300000
ENV npm_config_platform=$TARGETOS
RUN echo "Building for ${TARGETOS}/${TARGETARCH}"
RUN echo "arch=${TARGETARCH}" > ./.npmrc
RUN echo "platform=${TARGETOS}" >> ./.npmrc
RUN yarn install --network-timeout 300000 --verbose

ADD . /app/
RUN yarn build:prod
RUN yarn run env
RUN yarn build:prod --verbose

FROM node:18-alpine
RUN npm install --global pm2
Expand Down

0 comments on commit 862a99e

Please sign in to comment.