Skip to content

Commit

Permalink
Merge pull request anse-app#227 from lxxxv5/main
Browse files Browse the repository at this point in the history
chore: optimize dockerfile
  • Loading branch information
ddiu8081 authored Mar 11, 2023
2 parents d7f8277 + bca0b98 commit 0793b6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM node:alpine
RUN mkdir -p /usr/src
WORKDIR /usr/src
RUN npm install -g pnpm
COPY package.json pnpm-lock.yaml /usr/src/
RUN pnpm install
COPY . /usr/src
RUN npm install
RUN npm run build
RUN pnpm run build
EXPOSE 3000
ENV HOST=0.0.0.0
ENV PORT=3000
Expand Down

0 comments on commit 0793b6c

Please sign in to comment.