Skip to content

Commit e93a8c8

Browse files
committed
added docker support
1 parent 92246ba commit e93a8c8

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:16.0.0-alpine3.11
2+
3+
WORKDIR /app
4+
5+
COPY package.json /app/
6+
7+
RUN npm install
8+
9+
COPY . /app/
10+
11+
ENTRYPOINT [ "node", "index.js" ]

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: "3"
2+
3+
services:
4+
node_project:
5+
container_name: "ExpressAPI"
6+
build:
7+
context: .
8+
dockerfile: Dockerfile
9+
ports:
10+
- 3004:3000
11+
12+
networks:
13+
node_api_network:

0 commit comments

Comments
 (0)