app vue prems commit

This commit is contained in:
Jonas Legion 2021-12-20 12:10:12 +04:00
parent 5f1ab83828
commit c8b50d61a6
3 changed files with 20 additions and 21 deletions

View File

@ -53,9 +53,13 @@ services:
extends: extends:
file: ../compose/docker-compose-base.yml file: ../compose/docker-compose-base.yml
service: billetterie_front_node service: billetterie_front_node
build:
context: ../Dockerfile_Node
target: 'develop-stage'
ports: ports:
- 8080:8080 - 8080:8080
command: "sleep 30d" command: /bin/sh -c "yarn serve"
# command: "sleep 30d"
networks: networks:
- frontend - frontend

View File

@ -1,23 +1,17 @@
FROM node:lts-alpine # develop stage
FROM node:lts-bullseye as develop-stage
RUN apt update && apt upgrade -y
RUN apt install python -y
COPY package*.json ./
RUN yarn install
COPY . .
RUN npm install -g @vue/cli
# EXPOSE 8080
# CMD [ "http-server", "dist" ]
# PROD :
# build stage # build stage
FROM develop-stage as build-stage
# FROM node:lts-alpine as build-stage RUN yarn build
# WORKDIR /app
# COPY package*.json ./
# RUN npm install
# COPY . .
# RUN npm run build
# production stage # production stage
# FROM nginx:stable-alpine as production-stage
# FROM nginx:stable-alpine as production-stage COPY --from=build-stage /app/dist /usr/share/nginx/html
# COPY --from=build-stage /app/dist /usr/share/nginx/html EXPOSE 80
# EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
# CMD ["nginx", "-g", "daemon off;"]

View File

@ -43,6 +43,7 @@ services:
working_dir: /DjangoFiles working_dir: /DjangoFiles
# command: "bash /DjangoFiles/launch.sh" # command: "bash /DjangoFiles/launch.sh"
billetterie_front_node: billetterie_front_node:
container_name: billetterie_front_node container_name: billetterie_front_node
build: ../Dockerfile_Node build: ../Dockerfile_Node
@ -50,7 +51,7 @@ services:
volumes: volumes:
- "../../DjangoFiles:/DjangoFiles" - "../../DjangoFiles:/DjangoFiles"
- "../../Docker/bashrc:/root/.bashrc" - "../../Docker/bashrc:/root/.bashrc"
working_dir: /DjangoFiles working_dir: /DjangoFiles/BaseBillet/static/blk-vue/blk-vue-cli-app
billetterie_nginx: billetterie_nginx:
container_name: billetterie_nginx container_name: billetterie_nginx