diff --git a/kbatch-proxy/docker/local/Dockerfile b/kbatch-proxy/docker/local/Dockerfile index b7fe15b..cdd3594 100644 --- a/kbatch-proxy/docker/local/Dockerfile +++ b/kbatch-proxy/docker/local/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9 +FROM python:3.12 WORKDIR /code @@ -6,4 +6,4 @@ 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"] \ No newline at end of file +CMD ["uvicorn", "kbatch_proxy.main:app", "--host", "0.0.0.0", "--port", "80"] diff --git a/kbatch-proxy/docker/production/Dockerfile b/kbatch-proxy/docker/production/Dockerfile index d845f1d..43f20c0 100644 --- a/kbatch-proxy/docker/production/Dockerfile +++ b/kbatch-proxy/docker/production/Dockerfile @@ -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 @@ -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 \ No newline at end of file + --bind ${APP_HOST}:${APP_PORT} --log-level info