File size: 749 Bytes
dc08282
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8de5f0c
cc734cc
 
cc50143
dc08282
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# ベースイメージとして Node.js を使用
FROM node:18

# 作業ディレクトリを設定
WORKDIR /app

# ホストのファイルをコンテナにコピー
COPY . .

# translations ディレクトリを作成し、権限を設定
RUN mkdir -p /app/translations && chmod -R 777 /app/translations
RUN chmod -R 777 /app

# 依存関係をインストール(競合を無視)
RUN npm install --legacy-peer-deps

# OpenSSL の互換オプションを有効化
ENV NODE_OPTIONS="--openssl-legacy-provider"
#RUN git clone https://github.com/champierre/handpose2scratch.git
#RUN sh handpose2scratch/install.sh

# コンテナの起動時にサーバーを実行
CMD ["npm", "start"]

# コンテナがリッスンするポート
EXPOSE 3000