Skip to content

Commit

Permalink
dockerignore, revert to npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
akmatoff committed Oct 12, 2024
1 parent 5e3ad2d commit dea4cac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.git
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ ENV VITE_BASE_URL=${VITE_BASE_URL}

COPY package*.json /

RUN npm ci
RUN npm install

COPY . .

# Development

FROM base AS dev

ENV NODE_ENV=development

EXPOSE 4000

CMD ["npm", "run", "dev"]
Expand All @@ -26,6 +28,8 @@ CMD ["npm", "run", "dev"]

FROM base AS production

ENV NODE_ENV=production

WORKDIR /backoffice

RUN npm run build
Expand Down

0 comments on commit dea4cac

Please sign in to comment.