GaMMA / Dockerfile
zhuwq0's picture
update
7c4bb5c
raw
history blame contribute delete
559 Bytes
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM python:3.9
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
RUN git clone https://github.com/AI4EPS/GaMMA.git
RUN pip install --no-cache-dir -e GaMMA
WORKDIR /app/GaMMA
COPY --chown=user . /app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]