fixed a docker issue updated the README
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
# The first FROM is now a stage called build-stage
|
||||
|
||||
FROM node:20 AS build-stage
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
services:
|
||||
app:
|
||||
image: devcon-frontend-dev
|
||||
build:
|
||||
context: . # The context will pick this directory as the "build context"
|
||||
dockerfile: dev.Dockerfile # This will simply tell which dockerfile to read
|
||||
volumes:
|
||||
- ./:/usr/src/app # The path can be relative, so ./ is enough to say "the same location as the docker-compose.yml"
|
||||
ports:
|
||||
- 5173:3000
|
||||
container_name: devcon-front-dev
|
||||
@@ -1,11 +0,0 @@
|
||||
services:
|
||||
app:
|
||||
image: todo-front-dev
|
||||
build:
|
||||
context: . # The context will pick this directory as the "build context"
|
||||
dockerfile: dev.Dockerfile # This will simply tell which dockerfile to read
|
||||
volumes:
|
||||
- ./:/usr/src/app # The path can be relative, so ./ is enough to say "the same location as the docker-compose.yml"
|
||||
ports:
|
||||
- 5173:5173
|
||||
container_name: todo-front
|
||||
Reference in New Issue
Block a user