Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
BusterNeece committed Dec 12, 2023
1 parent e4217a7 commit c7f1f1b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ CMD ["npm", "run", "dev"]

FROM base AS production-builds

RUN mkdir -p /dist \
&& chown -R node:node /dist

WORKDIR /data
COPY . .

Expand All @@ -44,8 +47,9 @@ USER node

RUN npm ci --include=dev \
&& npm run build \
&& rm -rf /data/node_modules \
&& mv /data/dist /dist
&& rm -rf ./node_modules \
&& cp -RT ./dist /dist \
&& rm -rf ./dist

FROM production-builds AS builtin

Expand All @@ -70,5 +74,5 @@ RUN rm -rf ./src ./dist ./public \
&& npm run builtin-build \
&& rm -rf ./node_modules \
&& cd builtin \
&& rm -rf ./src ./dist ./public \
&& mv ./dist /dist
&& cp -RT ./dist /dist \
&& rm -rf ./src ./dist ./public

0 comments on commit c7f1f1b

Please sign in to comment.