Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.

Commit 0ad746d

Browse files
committed
build: add Dockerfile
1 parent 9628843 commit 0ad746d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:14-alpine
2+
MAINTAINER lgou2w <lgou2w@hotmail.com>
3+
4+
RUN apk add --no-cache curl
5+
RUN curl -f https://get.pnpm.io/v6.js | node - add --global pnpm
6+
7+
WORKDIR /app
8+
COPY package.json pnpm-lock.yaml /app/
9+
RUN pnpm install
10+
11+
COPY . /app
12+
RUN pnpm build
13+
14+
CMD ["pnpm", "start"]

0 commit comments

Comments
 (0)