kasper-boy commited on
Commit
35e9d5d
1 Parent(s): 2046ce1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,9 +1,13 @@
1
- # Use the official Python image from the Docker Hub
2
- FROM python:3.10
3
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
 
 
 
 
7
  # Copy the requirements file into the container
8
  COPY requirements.txt requirements.txt
9
 
 
1
+ # Use the official Python 3.10 image from the Docker Hub
2
+ FROM python:3.10-slim
3
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
+ # Create a writable cache directory
8
+ RUN mkdir -p /app/.cache/huggingface
9
+ ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
10
+
11
  # Copy the requirements file into the container
12
  COPY requirements.txt requirements.txt
13