add docker

This commit is contained in:
William Bell committed 2026-04-08 11:38:11 +01:00
1 parent cd95be172b
commit 0699d20b3f
3 files changed
+37 -2

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "7087:8000"
restart: unless-stopped
+26
View File
@@ -0,0 +1,26 @@
FROM --platform=$BUILDPLATFORM python:alpine AS builder
WORKDIR /app
COPY requirements.txt /app
RUN --mount=type=cache,target=/root/.cache/pip \
pip3 install -r requirements.txt
COPY . /app
ENTRYPOINT ["gunicorn"]
CMD ["--bind","0.0.0.0:8000","main:app", "--timeout","120", "--access-logfile", "-", "--error-logfile", "-","--log-level","info"]
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
COPY --from=gloursdocker/docker / /
+3 -2
View File
@@ -2,8 +2,9 @@ bcrypt==5.0.0
blinker==1.9.0
click==8.3.1
Flask==3.1.2
gunicorn==25.3.0
itsdangerous==2.2.0
Jinja2==3.1.6
MarkupSafe==3.0.3
Werkzeug==3.1.5
psycopg2-binary==2.9.10
packaging==26.0
Werkzeug==3.1.5