feat: Add run production mode with docker-compose.
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user