fpl_app / Dockerfile
jedeland's picture
new app
afa146e
raw
history blame contribute delete
574 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.11
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 --mount=type=secret,id=HOPSWORKS_API_KEY,mode=0444,required=true \
export HOPSWORKS_API_KEY=$(cat /run/secrets/HOPSWORKS_API_KEY)
CMD ["gunicorn", "app:app", "-b", "0.0.0.0:7860"]