Spaces:
Runtime error
Runtime error
File size: 499 Bytes
b199d5a 3930193 61dcd73 3930193 61dcd73 72508c1 61dcd73 3930193 80f2f61 3930193 f6223b9 3930193 61dcd73 30e8612 61dcd73 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 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"]
|