soiz1 commited on
Commit
4a5144c
·
verified ·
1 Parent(s): 7040b28

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ベースイメージとしてNode.jsを使用
2
+ FROM node:18
3
+
4
+ # 作業ディレクトリを設定
5
+ WORKDIR /app
6
+
7
+ # 必要なツールをインストール
8
+ RUN apt-get update && apt-get install -y git
9
+
10
+ # GitHubリポジトリをクローン
11
+ RUN git clone https://github.com/PenguinMod/penguinmod.github.io.git .
12
+
13
+ # 依存関係をインストール
14
+ RUN npm install
15
+
16
+ # コンテナの起動時にサーバーを実行
17
+ CMD ["npm", "start"]
18
+
19
+ # コンテナがリッスンするポート
20
+ EXPOSE 8000