Skip to content

Commit

Permalink
Merge pull request #4 from bescka/frontend-docker-updates
Browse files Browse the repository at this point in the history
Frontend: Docker formatting fix
  • Loading branch information
BraunRudolf authored Jul 26, 2024
2 parents 4bbf13b + f13ac06 commit 47281d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6,216 deletions.
7 changes: 3 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@ services:
build:
context: ./frontend-app/
dockerfile: Dockerfile.dev
volumes:
- ./frontend-app:/frontend-app
networks:
- my_network
ports:
- "3000:3000"
depends_on:
- backend
volumes:
- /app/node_modules
- ./frontend-app:/app
env_file:
- frontend.env

backend:
build:
context: ./backend-app/
dockerfile: Dockerfile.dev
volumes:
- ./backend-app:/backend-app
networks:
- my_network
ports:
Expand Down
6 changes: 4 additions & 2 deletions frontend-app/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM node:slim

WORKDIR /
WORKDIR /app

COPY . .
COPY package.json ./

RUN npm install

COPY . .

EXPOSE 3000

CMD ["npm", "run", "dev"]
Loading

0 comments on commit 47281d3

Please sign in to comment.