Last active
October 2, 2020 18:25
-
-
Save desaijay315/0c7a5e75f2d62672e16080a702b87f0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:12 | |
ENV PORT 3000 | |
# Create app directory | |
RUN mkdir /var/movable/ && mkdir /var/movable/app | |
WORKDIR /var/movable/app | |
RUN rm -rf .next* | |
# Installing dependencies | |
COPY package*.json /var/movable/app/ | |
RUN npm install | |
# Copying source files | |
COPY . /var/movable/app | |
# Building app | |
RUN npm run build | |
EXPOSE 3000 | |
# Running the app | |
CMD "npm" "run" "start_prod" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment