make dockerfile
This commit is contained in:
parent
d5f90cd8bd
commit
78d1ae2263
9
Dockerfile
Normal file
9
Dockerfile
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user