dockerize backend

This commit is contained in:
Moon Patel
2023-09-18 21:58:47 +05:30
parent f318d426ee
commit a42a7d0e75
2 changed files with 21 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
node_modules
+20
View File
@@ -0,0 +1,20 @@
# Dockerfile for Node Express Backend
FROM node
# Create App Directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install Dependencies
COPY package*.json ./
RUN npm install --silent
# Copy app source code
COPY . .
# Exports
EXPOSE 5000
CMD ["npm","start"]