diff --git a/django/README.md b/django/README.md index 2a187330f..864f9a670 100644 --- a/django/README.md +++ b/django/README.md @@ -14,10 +14,10 @@ Project structure: [_compose.yaml_](compose.yaml) ``` -services: - web: - build: app - ports: +services: + web: + build: app + ports: - '8000:8000' ``` diff --git a/django/app/Dockerfile b/django/app/Dockerfile index bdf66f171..7b3213aed 100644 --- a/django/app/Dockerfile +++ b/django/app/Dockerfile @@ -2,11 +2,11 @@ FROM --platform=$BUILDPLATFORM python:3.7-alpine AS builder EXPOSE 8000 -WORKDIR /app +WORKDIR /app COPY requirements.txt /app RUN pip3 install -r requirements.txt --no-cache-dir -COPY . /app -ENTRYPOINT ["python3"] +COPY . /app +ENTRYPOINT ["python3"] CMD ["manage.py", "runserver", "0.0.0.0:8000"] FROM builder as dev-envs diff --git a/django/compose.yaml b/django/compose.yaml index 88df6d3fb..55f866931 100644 --- a/django/compose.yaml +++ b/django/compose.yaml @@ -1,7 +1,7 @@ services: - web: + web: build: context: app target: builder - ports: + ports: - '8000:8000'