1
0
mirror of https://github.com/docker/awesome-compose.git synced 2025-07-09 15:24:54 +00:00
This commit is contained in:
Wes Lord 2024-12-21 21:35:25 +00:00 committed by GitHub
commit e98509a45b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 18 deletions

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1.4 # syntax=docker/dockerfile:1.4
FROM --platform=$BUILDPLATFORM python:3.7-alpine AS builder FROM python:3.7-alpine
EXPOSE 8000 EXPOSE 8000
WORKDIR /app WORKDIR /app
COPY requirements.txt /app COPY requirements.txt /app
@ -8,17 +8,3 @@ 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
RUN <<EOF
apk update
apk add git
EOF
RUN <<EOF
addgroup -S docker
adduser -S --shell /bin/bash --ingroup docker vscode
EOF
# install Docker tools (cli, buildx, compose)
COPY --from=gloursdocker/docker / /
CMD ["manage.py", "runserver", "0.0.0.0:8000"]

View File

@ -1,7 +1,5 @@
services: services:
web: web:
build: build: app
context: app
target: builder
ports: ports:
- '8000:8000' - '8000:8000'