koekeloer / Dockerfile
ChristopherMarais's picture
Update Dockerfile
f0e37f4 verified
raw
history blame contribute delete
463 Bytes
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Set the cache directory environment variable
ENV TRANSFORMERS_CACHE=/app/cache
# Create the cache directory
RUN mkdir -p /app/cache
# Copy and install dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy your application code.
COPY . .
# Expose the port your app runs on.
EXPOSE 8080
# Command to run your app.
CMD ["python", "app.py"]