Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kbatch-proxy/docker/local/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM python:3.9
FROM python:3.12

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY ./kbatch_proxy /code/kbatch_proxy

CMD ["uvicorn", "kbatch_proxy.main:app", "--host", "0.0.0.0", "--port", "80"]
CMD ["uvicorn", "kbatch_proxy.main:app", "--host", "0.0.0.0", "--port", "80"]
6 changes: 3 additions & 3 deletions kbatch-proxy/docker/production/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM python:3.9
FROM python:3.12-slim

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN pip install --no-cache-dir --upgrade --only-binary :all: -r requirements.txt
COPY ./docker/production/gunicorn_conf.py /code/
COPY ./kbatch_proxy /code/kbatch_proxy

Expand All @@ -13,4 +13,4 @@ ENV APP_PORT=80
# Do not use --preload, because it doesn't work correctly with OpenCensus
CMD gunicorn kbatch_proxy.main:app -k uvicorn.workers.UvicornWorker \
-c /code/gunicorn_conf.py \
--bind ${APP_HOST}:${APP_PORT} --log-level info
--bind ${APP_HOST}:${APP_PORT} --log-level info