Skip to content

Commit f0ff5b7

Browse files
authored
chore: add dockerfile and docker-compose.yml #48
chore: add dockerfile and docker-compose.yml #48
2 parents 9ec32de + 9b9ae00 commit f0ff5b7

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM node:16.20-slim
2+
COPY . /app
3+
WORKDIR /app
4+
RUN npm install
5+
ENV TZ Asia/Tokyo
6+
CMD npm run start

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: '3'
2+
services:
3+
web:
4+
container_name: codejavu-web
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
ports:
9+
- 4200:4200
10+
volumes:
11+
- .:/app
12+
stdin_open: true
13+
tty: true
14+
restart: always

0 commit comments

Comments
 (0)