Add dockerfile
This commit is contained in:
parent
8cd1409eb6
commit
1c55215d9e
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM node:16
|
||||
|
||||
RUN yarn global add pnpm
|
||||
|
||||
RUN mkdir /app
|
||||
|
||||
COPY lib/ /app
|
||||
|
||||
RUN rm -f /app/.env
|
||||
|
||||
COPY package.json /app
|
||||
COPY pnpm-lock.yaml /app
|
||||
|
||||
RUN cd /app && pnpm install
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["node", "index.js"]
|
Loading…
Reference in New Issue
Block a user