Answer the question
In order to leave comments, you need to log in
How to run Vue in docker in dev mode?
Hi guys, maybe someone in the subject:
FROM node:16.5-alpine
ARG APP_DIR=/app
ARG LOCAL_APP_PATH=cabinet
RUN mkdir -p ${APP_DIR}
WORKDIR ${APP_DIR}
COPY ${LOCAL_APP_PATH}/package*.json ./
RUN npm i;
RUN npm i @vue/cli -g
EXPOSE 8080
CMD npm run serve
RUN npm i @vue/cli -g
screw up?!
Answer the question
In order to leave comments, you need to log in
maybe add the path to the installed vue-cli-service
ENV PATH=${APP_DIR}/node_modules/.bin:$PATH
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question