Compare commits

..

No commits in common. "649754166e4758f05e82f27478f621ebbbb34693" and "67150e7e42dda57616103d79f67fad3d9f0c80cc" have entirely different histories.

3 changed files with 7 additions and 5 deletions

View File

@ -5,6 +5,8 @@ ENV PYTHONPATH=/app
WORKDIR /app WORKDIR /app
RUN apt update
COPY requirements.txt ./requirements.txt COPY requirements.txt ./requirements.txt
RUN pip3 install --no-cache-dir -r 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/ COPY ./src/ ./src/
ENV GUNICORN_CMD_ARGS="--bind=0.0.0.0:5000 --workers=16"
WORKDIR /app/src WORKDIR /app/src
CMD ["python", "main.py"] # Run gunicorn with the application
CMD ["sanic", "main", "--port=5000"]

View File

@ -1,4 +1,4 @@
ossapi==3.4.3 ossapi==3.4.3
circleguard==5.4.2 circleguard==5.4.1
brparser==1.0.4 brparser==1.0.4
sanic==24.6.0 sanic==24.6.0

View File

@ -291,6 +291,3 @@ async def process_similarity(request: Request):
except ValueError as e: except ValueError as e:
raise exceptions.BadRequest(str(e)) raise exceptions.BadRequest(str(e))
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)