diff --git a/docker-compose.yml b/docker-compose.yml index b5fb442..c36550a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,9 +18,6 @@ services: ports: - "8000:8000" build: ./backend - volumes: - - "./backend:/app" - - read_only: true depends_on: - db networks: @@ -31,10 +28,6 @@ services: image: app_vue restart: on-failure build: ./frontend - volumes: - - "./frontend:/app" - - "/app/node_modules" - - read_only: true ports: - "8080:8080" networks: diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 5c050b4..1ac7418 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -2,9 +2,9 @@ FROM node:lts-alpine WORKDIR /app +COPY . . + ENV PATH /app/node_modules/.bin:$PATH -COPY package.json . -COPY package-lock.json . RUN npm install CMD ["npm", "run", "serve"] \ No newline at end of file