Dockerfile

Answer

FROM node:lts-alpine
LABEL maintainer="Mrityunjay.Mukherjee@gmail.com"
# Timezone
RUN apk add --no-cache tzdata
ENV TZ=Asia/Kolkata
# Create app directory
RUN mkdir -p /usr/src/app
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 ./
# upadte npm
RUN npm install npm@8.5.5 -g
RUN npm install
# If you are building your code for production
# RUN npm install --only=production

# Bundle app source
COPY . .

EXPOSE 5000
ENV PORT 5000

CMD [ "npm","start" ]

All 2d Questions

Ask your interview questions on 2d

Write Your comment or Questions if you want the answers on 2d from 2d Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---