Skip to content

Commit bffc23a

Browse files
committed
add Dockerfile
1 parent fa19e37 commit bffc23a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Diff for: .dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
npm-debug.log

Diff for: Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:latest
2+
3+
# アプリケーションディレクトリを作成する
4+
WORKDIR /usr/src/app
5+
6+
# ライブラリのインストール
7+
COPY package*.json ./
8+
RUN npm install --only=production
9+
10+
# ソースコードのインポート
11+
COPY . .
12+
13+
EXPOSE 3000
14+
CMD [ "node", "app.js" ]

0 commit comments

Comments
 (0)