1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-06 03:57:53 +08:00
vue-element-admin/Dockerfile
2020-06-09 17:09:39 -04:00

18 lines
336 B
Docker

FROM node:12
# 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