D dockerfile

?? Dockerfile
This commit is contained in:
2024-05-25 22:18:19 +05:00
parent db877ce7fe
commit 8dbb7d4525

19
Dockerfile Executable file
View File

@ -0,0 +1,19 @@
FROM node:16
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# If you are building your code for production
# RUN npm ci --only=production
# Bundle app source
COPY . .
EXPOSE 8080
CMD [ "node", "index.js" ]