обновил докер образ, тест ci/cd
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
urec56 2025-04-11 12:45:25 +03:00
parent c1f64f82fe
commit 8c32cfdab3
3 changed files with 30 additions and 10 deletions

View file

@ -6,9 +6,19 @@ ENV APP_HOME=/home/app
WORKDIR $APP_HOME WORKDIR $APP_HOME
RUN apk add --no-cache \ # RUN apk add --no-cache \
gcc \ # build-base \
musl-dev # 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 \ # RUN apt-get update \
# && apt-get -y install curl gcc libpq-dev \ # && apt-get -y install curl gcc libpq-dev \
@ -17,7 +27,7 @@ RUN apk add --no-cache \
COPY requirements.txt . COPY requirements.txt .
RUN pip config set global.trusted-host "pypi.python.org pypi.org files.pythonhosted.org" && \ 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 . . COPY . .
@ -26,5 +36,5 @@ RUN chown -R app:app $APP_HOME
USER app USER app
CMD ["gunicorn", "app.main:app", "--workers", "2", "--worker-class", "uvicorn.workers.UvicornWorker",\ 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"]

View file

@ -6,9 +6,19 @@ ENV APP_HOME=/home/app
WORKDIR $APP_HOME WORKDIR $APP_HOME
RUN apk add --no-cache \ # RUN apk add --no-cache \
gcc \ # build-base \
musl-dev # 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 \ # RUN apt-get update \
# && apt-get -y install curl gcc libpq-dev \ # && apt-get -y install curl gcc libpq-dev \
@ -17,7 +27,7 @@ RUN apk add --no-cache \
COPY requirements.txt . COPY requirements.txt .
RUN pip config set global.trusted-host "pypi.python.org pypi.org files.pythonhosted.org" && \ 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 . . COPY . .

View file

@ -53,7 +53,7 @@ MarkupSafe==2.1.3
mccabe==0.7.0 mccabe==0.7.0
mdurl==0.1.2 mdurl==0.1.2
motor==3.5.1 motor==3.5.1
multidict==6.0.4 multidict==6.0.5
mypy-extensions==1.0.0 mypy-extensions==1.0.0
nodeenv==1.8.0 nodeenv==1.8.0
orjson==3.9.15 orjson==3.9.15