Introduce container build files
This commit is contained in:
parent
5152af4126
commit
0d50db20ae
2 changed files with 34 additions and 0 deletions
16
Containerfile
Normal file
16
Containerfile
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
FROM python:3-alpine3.20 AS base
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
FROM base AS reqs
|
||||||
|
COPY requirements.txt requirements.txt
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
FROM reqs AS app
|
||||||
|
COPY templates templates
|
||||||
|
COPY wsgi.py wsgi.py
|
||||||
|
|
||||||
|
VOLUME images
|
||||||
|
|
||||||
|
ENTRYPOINT waitress-serve --host 127.0.0.1 --port 5099 wsgi:app
|
||||||
|
|
||||||
18
Containerfile.aio
Normal file
18
Containerfile.aio
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
FROM python:3-alpine3.20 AS base
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
FROM base AS reqs
|
||||||
|
COPY requirements.txt requirements.txt
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
FROM reqs AS app
|
||||||
|
COPY templates templates
|
||||||
|
COPY wsgi.py wsgi.py
|
||||||
|
|
||||||
|
FROM app AS imgs
|
||||||
|
ARG images
|
||||||
|
copy ${images} images
|
||||||
|
|
||||||
|
ENTRYPOINT waitress-serve --host 127.0.0.1 --port 5099 wsgi:app
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue