Browse Source

added new dockerfile and use 14 node image

Signed-off-by: rizqevo <rizqevo@hotmail.com>
rizqevo 3 năm trước cách đây
mục cha
commit
6ec1a3e48c
1 tập tin đã thay đổi với 18 bổ sung0 xóa
  1. 18 0
      dockerfile

+ 18 - 0
dockerfile

@@ -0,0 +1,18 @@
+FROM node:14
+
+# 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" "start"