Skip to content

Commit ef41544

Browse files
committed
Nest file upload docker config
1 parent 2acf4c4 commit ef41544

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

nest-file-uploading/.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/node_modules

nest-file-uploading/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM node:12
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY package*.json ./
6+
7+
RUN npm ci
8+
9+
COPY . .
10+
11+
RUN npm run build
12+
13+
EXPOSE 3000
14+
15+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)