mirror of
https://github.com/docker/awesome-compose.git
synced 2025-07-01 01:52:54 +00:00
Merge 23fe121009
into 18f59bdb09
This commit is contained in:
commit
1b2acaabbc
@ -14,10 +14,10 @@ Project structure:
|
|||||||
|
|
||||||
[_compose.yaml_](compose.yaml)
|
[_compose.yaml_](compose.yaml)
|
||||||
```
|
```
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: app
|
build: app
|
||||||
ports:
|
ports:
|
||||||
- '8000:8000'
|
- '8000:8000'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM python:3.7-alpine AS builder
|
FROM --platform=$BUILDPLATFORM python:3.7-alpine AS builder
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY requirements.txt /app
|
COPY requirements.txt /app
|
||||||
RUN pip3 install -r requirements.txt --no-cache-dir
|
RUN pip3 install -r requirements.txt --no-cache-dir
|
||||||
COPY . /app
|
COPY . /app
|
||||||
ENTRYPOINT ["python3"]
|
ENTRYPOINT ["python3"]
|
||||||
CMD ["manage.py", "runserver", "0.0.0.0:8000"]
|
CMD ["manage.py", "runserver", "0.0.0.0:8000"]
|
||||||
|
|
||||||
FROM builder as dev-envs
|
FROM builder as dev-envs
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build:
|
build:
|
||||||
context: app
|
context: app
|
||||||
target: builder
|
target: builder
|
||||||
ports:
|
ports:
|
||||||
- '8000:8000'
|
- '8000:8000'
|
||||||
|
Loading…
Reference in New Issue
Block a user