CoolFace
Apppublic

TRMT/Multimodal_Bird_Search

sourceHugging Faceunknownupdated 3y agoView on Hugging Face
0likes
Dockerfile23 linesDownload Raw Back to root
1# ベースイメージを選択2FROM tiangolo/uvicorn-gunicorn-fastapi:python3.93 4# 作業ディレクトリを設定5WORKDIR /my_codes6 7# Copy the current directory contents into the container at /app8COPY . /my_codes9 10# Install any needed packages specified in requirements.txt11RUN pip install --no-cache-dir -r requirements.txt12 13RUN chmod -R 777 /my_codes/app14 15WORKDIR /my_codes/app16 17RUN mkdir CACHE && chmod -R 777 CACHE18ENV TRANSFORMERS_CACHE CACHE19ENV NUMBA_CACHE_DIR CACHE20 21# Run app.py when the container launches22CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]23