soiz1 commited on
Commit
4b3a3d6
·
verified ·
1 Parent(s): 545bc94

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -26
Dockerfile CHANGED
@@ -1,26 +1,27 @@
1
- # ベースイメージとして Node.js を使用
2
- FROM node:18
3
-
4
- # 作業ディレクトリを設定
5
- WORKDIR /app
6
-
7
- # ホストのファイルをコンテナにコピー
8
- COPY . .
9
-
10
- # translations ディレクトリを作成し、権限を設定
11
- RUN mkdir -p /app/translations && chmod -R 777 /app/translations
12
- RUN chmod -R 777 /app
13
-
14
- # 依存関係をインストール(競合を無視)
15
- RUN npm install --legacy-peer-deps
16
-
17
- # OpenSSL の互換オプションを有効化
18
- #ENV NODE_OPTIONS="--openssl-legacy-provider"
19
- #RUN git clone https://github.com/champierre/handpose2scratch.git
20
- #RUN sh handpose2scratch/install.sh
21
-
22
- # コンテナの起動時にサーバーを実行
23
- CMD ["npm", "start"]
24
-
25
- # コンテナがリッスンするポート
26
- EXPOSE 3000
 
 
1
+ # ベースイメージとして Node.js を使用
2
+ FROM node:18
3
+
4
+ # 作業ディレクトリを設定
5
+ WORKDIR /app
6
+
7
+ # ホストのファイルをコンテナにコピー
8
+ COPY . .
9
+
10
+ # translations ディレクトリを作成し、権限を設定
11
+ RUN mkdir -p /app/translations && chmod -R 777 /app/translations
12
+ RUN chmod -R 777 /app
13
+
14
+ # 依存関係をインストール(競合を無視)
15
+ RUN npm install --legacy-peer-deps
16
+
17
+ # OpenSSL の互換オプションを有効化
18
+ ENV NODE_OPTIONS="--openssl-legacy-provider"
19
+
20
+ #RUN git clone https://github.com/champierre/handpose2scratch.git
21
+ #RUN sh handpose2scratch/install.sh
22
+
23
+ # コンテナの起動時にサーバーを実行
24
+ CMD ["npm", "start"]
25
+
26
+ # コンテナがリッスンするポート
27
+ EXPOSE 3000