make dockerfile

This commit is contained in:
Léo 2025-03-06 21:19:07 +01:00
parent d5f90cd8bd
commit 78d1ae2263

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM node:16-alpine
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN npm install -g pnpm && pnpm install
COPY . .
RUN pnpm run build
RUN npm install -g serve
EXPOSE 5000
CMD ["serve", "-s", "dist", "-l", "5000"]