Spaces:
Runtime error
Runtime error
File size: 786 Bytes
1438e00 bd0d17d 1438e00 bd0d17d 1438e00 bd0d17d 1438e00 bd0d17d 1438e00 bd0d17d 1438e00 997881b 1438e00 bd0d17d 1438e00 bd0d17d |
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 |
# Use an official Python runtime as a parent image
FROM python:3.9-slim-buster
# Set the working directory in the container to /app
WORKDIR /app
# Copy the requirements file to the container at /app
COPY requirements.txt /app
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Set both TRANSFORMERS_CACHE and HF_HOME
ENV TRANSFORMERS_CACHE=/tmp
ENV HF_HOME=/tmp
# Copy the application code to the container at /app
COPY . /app
# Make port 8080 available to the world outside this container
EXPOSE 8080
# Run app.py when the container launches
CMD ["python", "app.py"]
|