I tried to docker build my vue app and it passed, however when I tried to docker run the problem occured.
My Dockerfile as follow:
FROM node:latest AS build
RUN mkdir /app
WORKDIR /app
COPY [“package.json”, “package-lock.json*”, “npm-shrinkwrap.json*”, “./”]
RUN npm install
COPY . .
USER node
EXPOSE 8686
CMD [“npm”, “run”, “serve”]
how can I successfully docker run my project
New contributor
lcyll is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.