Skip to content

Commit

Permalink
fix: Vite build error in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSciFier committed Dec 4, 2023
1 parent 8de489c commit 3b19ffc
Show file tree
Hide file tree
Showing 5 changed files with 2,280 additions and 2,185 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ WORKDIR /app/client

ENV PATH /app/client/node_modules/.bin:$PATH

ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
ENV NPM_CONFIG_LOGLEVEL=warn

COPY ./frontend/package*.json ./

RUN npm ci --omit=dev
RUN npm ci
COPY ./frontend .
RUN npm run build

Expand Down Expand Up @@ -45,4 +41,6 @@ ENV FASTIFY_ADDRESS=0.0.0.0
ENV FASTIFY_LOG_LEVEL=error
ENV FASTIFY_PLUGIN_TIMEOUT=${FASTIFY_PLUGIN_TIMEOUT}

EXPOSE 3333

CMD [ "node", "server.js" ]
Loading

0 comments on commit 3b19ffc

Please sign in to comment.