Explorar o código

# Build App
RUN npm run build

andi %!s(int64=3) %!d(string=hai) anos
pai
achega
53f7376367
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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"