Compare commits
No commits in common. "649754166e4758f05e82f27478f621ebbbb34693" and "67150e7e42dda57616103d79f67fad3d9f0c80cc" have entirely different histories.
649754166e
...
67150e7e42
@ -5,6 +5,8 @@ ENV PYTHONPATH=/app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt update
|
||||
|
||||
COPY requirements.txt ./requirements.txt
|
||||
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||
@ -19,6 +21,9 @@ RUN sed -i '238s|return \[x for x in arr if lower_limit < x < upper_limit\]|arr_
|
||||
|
||||
COPY ./src/ ./src/
|
||||
|
||||
ENV GUNICORN_CMD_ARGS="--bind=0.0.0.0:5000 --workers=16"
|
||||
|
||||
WORKDIR /app/src
|
||||
|
||||
CMD ["python", "main.py"]
|
||||
# Run gunicorn with the application
|
||||
CMD ["sanic", "main", "--port=5000"]
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
ossapi==3.4.3
|
||||
circleguard==5.4.2
|
||||
circleguard==5.4.1
|
||||
brparser==1.0.4
|
||||
sanic==24.6.0
|
||||
|
||||
@ -291,6 +291,3 @@ async def process_similarity(request: Request):
|
||||
|
||||
except ValueError as e:
|
||||
raise exceptions.BadRequest(str(e))
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0', port=5000)
|
||||
Loading…
Reference in New Issue
Block a user