Compare commits
2 Commits
67150e7e42
...
649754166e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
649754166e | ||
|
|
ed57c15387 |
@ -5,8 +5,6 @@ ENV PYTHONPATH=/app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt update
|
||||
|
||||
COPY requirements.txt ./requirements.txt
|
||||
|
||||
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||
@ -21,9 +19,6 @@ 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
|
||||
|
||||
# Run gunicorn with the application
|
||||
CMD ["sanic", "main", "--port=5000"]
|
||||
CMD ["python", "main.py"]
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
ossapi==3.4.3
|
||||
circleguard==5.4.1
|
||||
circleguard==5.4.2
|
||||
brparser==1.0.4
|
||||
sanic==24.6.0
|
||||
|
||||
@ -291,3 +291,6 @@ 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