fauzanooor 3 anni fa
parent
commit
95a6548008
1 ha cambiato i file con 18 aggiunte e 0 eliminazioni
  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"