diff --git a/docker/Dockerfile_back b/docker/Dockerfile_back index 652e424..9422d7a 100644 --- a/docker/Dockerfile_back +++ b/docker/Dockerfile_back @@ -6,9 +6,19 @@ ENV APP_HOME=/home/app WORKDIR $APP_HOME -RUN apk add --no-cache \ - gcc \ - musl-dev +# RUN apk add --no-cache \ +# build-base \ +# python3-dev \ +# libffi-dev \ +# openssl-dev \ +# musl-dev \ +# gcc \ +# libc-dev + +# RUN apk update \ +# && apk add --no-cache gcc git python3-dev musl-dev linux-headers \ +# libc-dev rsync zsh \ +# findutils wget util-linux grep libxml2-dev libxslt-dev # RUN apt-get update \ # && apt-get -y install curl gcc libpq-dev \ @@ -17,7 +27,7 @@ RUN apk add --no-cache \ COPY requirements.txt . RUN pip config set global.trusted-host "pypi.python.org pypi.org files.pythonhosted.org" && \ - pip install --no-cache-dir -r requirements.txt + pip install --no-cache-dir -r requirements.txt COPY . . @@ -26,5 +36,5 @@ RUN chown -R app:app $APP_HOME USER app CMD ["gunicorn", "app.main:app", "--workers", "2", "--worker-class", "uvicorn.workers.UvicornWorker",\ - "--bind=0.0.0.0:8000", "--max-requests", "10000", "--max-requests-jitter", "20"] + "--bind=0.0.0.0:8000", "--max-requests", "10000", "--max-requests-jitter", "20"] diff --git a/docker/Dockerfile_celery b/docker/Dockerfile_celery index bc3959a..e9011a6 100644 --- a/docker/Dockerfile_celery +++ b/docker/Dockerfile_celery @@ -6,9 +6,19 @@ ENV APP_HOME=/home/app WORKDIR $APP_HOME -RUN apk add --no-cache \ - gcc \ - musl-dev +# RUN apk add --no-cache \ +# build-base \ +# python3-dev \ +# libffi-dev \ +# openssl-dev \ +# musl-dev \ +# gcc \ +# libc-dev + +# RUN apk update \ +# && apk add --no-cache gcc git python3-dev musl-dev linux-headers \ +# libc-dev rsync zsh \ +# findutils wget util-linux grep libxml2-dev libxslt-dev # RUN apt-get update \ # && apt-get -y install curl gcc libpq-dev \ @@ -17,7 +27,7 @@ RUN apk add --no-cache \ COPY requirements.txt . RUN pip config set global.trusted-host "pypi.python.org pypi.org files.pythonhosted.org" && \ - pip install --no-cache-dir -r requirements.txt + pip install --no-cache-dir -r requirements.txt COPY . . diff --git a/requirements.txt b/requirements.txt index c2ee545..2f7644e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -53,7 +53,7 @@ MarkupSafe==2.1.3 mccabe==0.7.0 mdurl==0.1.2 motor==3.5.1 -multidict==6.0.4 +multidict==6.0.5 mypy-extensions==1.0.0 nodeenv==1.8.0 orjson==3.9.15