mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
Working on a Docker Container
This commit is contained in:
1 parent
621b2b681a
commit
55aaeae1da
4 files changed
+18
-4
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
FROM python:3.13.2-alpine3.21
|
||||
WORKDIR /fipam
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY app /fipam/app
|
||||
COPY instance /fipam/instance
|
||||
ENV APP_HOME=/fipam
|
||||
ENV PYTHONPATH=${APP_HOME}
|
||||
ENV PATH="$PATH:${APP_HOME}/.local/bin"
|
||||
ENV GUNICORN_CMD_ARGS="--bind=0.0.0.0:5000 --workers=2 --preload"
|
||||
EXPOSE 5000
|
||||
ENTRYPOINT ["gunicorn","app:create_app()"]
|
||||
Reference in new issue
Block a user