soiz1 commited on
Commit
2a30a74
·
verified ·
1 Parent(s): 98e151c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +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
+
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