fix: Update python requirements
This commit is contained in:
parent
bb8687df09
commit
55152f3f72
@ -2,14 +2,13 @@ FROM --platform=$BUILDPLATFORM python:3.10-alpine AS builder
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt /app
|
COPY ../requirements.txt /app/requirements.txt
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
COPY ../templates /app/templates
|
COPY ../templates /app/templates
|
||||||
COPY ../.env /app/.env
|
COPY ../.env /app/.env
|
||||||
COPY ../requirements.txt /app/requirements.txt
|
|
||||||
|
|
||||||
# Add mount point for data volume
|
# Add mount point for data volume
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
|
@ -33,7 +33,7 @@ if __name__ == '__main__':
|
|||||||
workers = int(workers)
|
workers = int(workers)
|
||||||
threads = int(threads)
|
threads = int(threads)
|
||||||
options = {
|
options = {
|
||||||
'bind': '0.0.0.0:5001',
|
'bind': '0.0.0.0:5000',
|
||||||
'workers': workers,
|
'workers': workers,
|
||||||
'threads': threads,
|
'threads': threads,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user