From 12a0ef71d02b84c998b452fd6f5a3261de3980a8 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Wed, 7 Jun 2023 07:08:17 +0200 Subject: [PATCH] Feat(front): add docker for front --- docker-compose_live.yml | 7 +++++++ front/Dockerfile | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 front/Dockerfile diff --git a/docker-compose_live.yml b/docker-compose_live.yml index d567c3d..3ff7467 100644 --- a/docker-compose_live.yml +++ b/docker-compose_live.yml @@ -9,3 +9,10 @@ services: volumes: - ./backend/src:/app/src - ./datas:/datas + + frontend: + build: ./front + volumes: + - './front:/app' + ports: + - 8080:8080 diff --git a/front/Dockerfile b/front/Dockerfile new file mode 100644 index 0000000..17de4ee --- /dev/null +++ b/front/Dockerfile @@ -0,0 +1,14 @@ +FROM node:lts-alpine3.18 as node-base + +WORKDIR /app + +ENV PATH /app/node_modules/.bin:$PATH +FROM node-base as node-prepared + +RUN npm install @vue/cli@5.0.8 -g + +COPY package.json . +RUN yarn install +FROM node-prepared as vue-set + +CMD ["yarn", "serve"]