Spaces:
Runtime error

FlaskProject / Dockerfile
apophis51's picture
Update Dockerfile
72508c1 verified
Raw History Blame Contribute Delete
499 Bytes
FROM python:3.9
COPY requirements.txt /
RUN pip3 install --upgrade pip
RUN pip3 install optimum auto-gptq
RUN pip3 install -r /requirements.txt
# Install the optimum and auto-gptq packages
COPY . /app
WORKDIR /app
EXPOSE 7860
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
COPY --chown=user . $HOME/app
# Start the Flask app on port 7860, the default port expected by Spaces
CMD ["gunicorn","--config", "gunicorn_config.py", "app:app"]