Answer the question
In order to leave comments, you need to log in
Why is package.json ignored when running Vue from a docker container?
Hey guys, why isn't Vue running in a docker container ?
docker run -it -d --name project_name -p 3001:8080 -v /home/username/PhpstormProjects/project_name/cabinet:/app username/project_name
FROM node:17.3-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 ls -al
RUN npm i;
EXPOSE 8080
CMD npm run serve
docker ps -a
docker logs d57e7227eb10
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