R
R
razer962019-07-03 14:53:44
Command line
razer96, 2019-07-03 14:53:44

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

1 answer(s)
R
Roman Kitaev, 2019-07-03
@deliro

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 question

Ask a Question

731 491 924 answers to any question