Answer the question
In order to leave comments, you need to log in
How to make docker/vue start with mode=dev and watch?
Hello! Here is the docker script I use to launch vue-app:
FROM node:16.14.2-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build
FROM nginx as production-stage
RUN mkdir /app
COPY --from=build-stage /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf
ENV NODE_ENV=production
EXPOSE 443
CMD ["nginx", "-g", "daemon off;"]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question