Feat(front): add docker for front
This commit is contained in:
parent
ab9baa992f
commit
12a0ef71d0
@ -9,3 +9,10 @@ services:
|
||||
volumes:
|
||||
- ./backend/src:/app/src
|
||||
- ./datas:/datas
|
||||
|
||||
frontend:
|
||||
build: ./front
|
||||
volumes:
|
||||
- './front:/app'
|
||||
ports:
|
||||
- 8080:8080
|
||||
|
14
front/Dockerfile
Normal file
14
front/Dockerfile
Normal file
@ -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"]
|
Loading…
Reference in New Issue
Block a user