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
|
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"]
|
||||||
|
|
||||||
|
|
|
@ -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 . .
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue