Skip to content

Commit

Permalink
set workdir to dist (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssb-jnk authored Apr 9, 2024
1 parent d0ec333 commit 7445ae6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM node:20-alpine AS builder
WORKDIR /usr/local/app/dist
WORKDIR /usr/local/app

COPY . .
RUN npm ci && npm run build
Expand All @@ -13,6 +13,7 @@ COPY package*.json .
COPY server.js .

RUN npm i --save-exact express vite-express
WORKDIR /usr/local/app/dist

ENV PORT 8080
EXPOSE 8080
Expand Down

0 comments on commit 7445ae6

Please sign in to comment.