Answers for "docker nextjs with nginz"

0

docker nextjs with nginz

FROM node:12

ENV PORT 3000

# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Installing dependencies
COPY package*.json /usr/src/app/
RUN npm install

# Copying source files
COPY . /usr/src/app

# Building app
RUN npm run build
EXPOSE 3000

# Running the app
CMD "npm" "run" "dev"
Posted by: Guest on March-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language