mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-19 07:18:06 +02:00
Remove trailing whitespace from Django app
Signed-off-by: Wes Lord <weslord@fisgardlabs.com>
This commit is contained in:
parent
18f59bdb09
commit
23fe121009
3 changed files with 9 additions and 9 deletions
|
@ -14,10 +14,10 @@ Project structure:
|
|||
|
||||
[_compose.yaml_](compose.yaml)
|
||||
```
|
||||
services:
|
||||
web:
|
||||
build: app
|
||||
ports:
|
||||
services:
|
||||
web:
|
||||
build: app
|
||||
ports:
|
||||
- '8000:8000'
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
services:
|
||||
web:
|
||||
web:
|
||||
build:
|
||||
context: app
|
||||
target: builder
|
||||
ports:
|
||||
ports:
|
||||
- '8000:8000'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue