SimpleAES / Dockerfile
SFM2001's picture
Changes to be committed:
0daa81d
raw
history blame
370 Bytes
FROM python:3.12
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . /app
RUN python -m spacy download en_core_web_sm
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "360", "app:app"]