add dockerfile for production deployment
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
# Production Environment Dockerfile
|
||||
|
||||
# base image
|
||||
FROM node:alpine
|
||||
|
||||
# create & set working directory
|
||||
RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
|
||||
# copy source files
|
||||
COPY . /app
|
||||
|
||||
# install dependencies
|
||||
RUN npm install
|
||||
|
||||
# start app
|
||||
RUN npm run build
|
||||
EXPOSE 3000
|
||||
CMD npm run start
|
Reference in New Issue
Block a user