forked from Ugric/Komodo-Hub
add docker
This commit is contained in:
1 parent
cd95be172b
commit
0699d20b3f
3 files changed
+37
-2
No files matched your search
@@ -0,0 +1,8 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "7087:8000"
|
||||
restart: unless-stopped
|
||||
+26
@@ -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
@@ -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
|
||||
Reference in new issue
Block a user