soiz1 commited on
Commit
af9b516
·
verified ·
1 Parent(s): e81484e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -11,7 +11,6 @@ ARG github_token
11
  # translations ディレクトリを作成し、権限を設定
12
  RUN mkdir -p /app/translations && chmod -R 777 /app/translations
13
  RUN chmod -R 777 /app
14
- RUN python3 app.py
15
 
16
  # 依存関係をインストール(競合を無視)
17
  RUN npm install --legacy-peer-deps
@@ -20,7 +19,7 @@ RUN npm install --legacy-peer-deps
20
  ENV NODE_OPTIONS="--openssl-legacy-provider"
21
 
22
  # コンテナの起動時にサーバーを実行
23
- CMD ["npm", "start"]
24
 
25
  # コンテナがリッスンするポート
26
  EXPOSE 3000
 
11
  # translations ディレクトリを作成し、権限を設定
12
  RUN mkdir -p /app/translations && chmod -R 777 /app/translations
13
  RUN chmod -R 777 /app
 
14
 
15
  # 依存関係をインストール(競合を無視)
16
  RUN npm install --legacy-peer-deps
 
19
  ENV NODE_OPTIONS="--openssl-legacy-provider"
20
 
21
  # コンテナの起動時にサーバーを実行
22
+ CMD ["python3", "app.py", "&&", "npm", "start"]
23
 
24
  # コンテナがリッスンするポート
25
  EXPOSE 3000