Answer the question
In order to leave comments, you need to log in
How to competently create a docker container for a Vue-Cli-3 application?
Hello. I want to deploy my Vue-Cli-3 application in a Docker container. Tell someone some ready-made solution, or a ready-made container. Thanks in advance
Answer the question
In order to leave comments, you need to log in
Elementary
FROM node:alpine as front
WORKDIR /app
COPY . .
RUN npm install
RUN npm run build
# Конечно же можно не nginx, а любой другой
FROM nginx:alpine
COPY --from=front /app /build
COPY nginx.conf /etc/nginx/nginx.conf
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question