Explorar o código

add Dockerfile

fauzanooor %!s(int64=3) %!d(string=hai) anos
pai
achega
95a6548008
Modificáronse 1 ficheiros con 18 adicións e 0 borrados
  1. 18 0
      Dockerfile

+ 18 - 0
Dockerfile

@@ -0,0 +1,18 @@
+FROM node:12
+
+# Create app directory
+RUN mkdir -p /usr/src/app
+WORKDIR /usr/src/app
+
+# Installing dependencies
+COPY package.json ./
+RUN npm install
+
+# Copying source files
+COPY . .
+
+# Building app
+EXPOSE 3000
+
+# Running the app
+CMD "npm" "run" "preview"