feat: Add run production mode with docker-compose.

This commit is contained in:
Edwin Betancourt
2020-06-05 16:59:19 -04:00
parent 0ae5079b2a
commit ba236e5560
3 changed files with 61 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM node:10
# Create app directory
WORKDIR /usr/app
# Copy project files
COPY . ./
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
RUN npm install \
&& npm run build:prod
# Build state files
# Start builded application
CMD npm run preview