Updated ate-api

This commit is contained in:
Kikimanox
2022-10-24 16:32:14 +02:00
parent 21fa8542c9
commit 5947cc1b00
9 changed files with 201 additions and 36 deletions
+1 -4
View File
@@ -19,13 +19,10 @@ RUN python -m pip install -r requirements.txt
WORKDIR /app
COPY . /app
ADD https://kt-cloud.ijs.si/index.php/s/T4qtSKxbxgqr6c5/download/pytorch_model.bin ./model/term_extractor/
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
USER appuser
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
CMD ["gunicorn", "-t 0", "--bind", "0.0.0.0:5000", "main:app"]
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "main:app"]