This commit is contained in:
parent
c1f64f82fe
commit
8c32cfdab3
3 changed files with 30 additions and 10 deletions
|
@ -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"]
|
||||
|
||||
|
|
|
@ -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 . .
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue