ソースを参照

# Build App
RUN npm run build

andi 3 年 前
コミット
53f7376367
1 ファイル変更3 行追加2 行削除
  1. 3 2
      dockerfile

+ 3 - 2
dockerfile

@@ -30,10 +30,11 @@ RUN npm install
 # # Copying source files
 COPY . /usr/src/app
 
-
+# Build App
+RUN npm run build
 
 # Building app
 EXPOSE 3000
 
 # Running the app
-CMD "npm" "run" "dev"
+CMD "npm" "start"