Skip to content

Commit

Permalink
Add dev Dockerfile for vite-app
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcha committed Aug 12, 2023
1 parent eea0877 commit 3711953
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:lts-alpine

ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:/home/node/.npm-global/bin

RUN npm i -g pnpm

WORKDIR /home/node/app
RUN mkdir -p /home/node/app

COPY package*.json ./
RUN pnpm install

COPY . .

CMD ["pnpm", "dev", "--host", "0.0.0.0", "--port", "3000"]

EXPOSE 3000

0 comments on commit 3711953

Please sign in to comment.