pollitoconpapass commited on
Commit
33cc276
·
1 Parent(s): 528f18a

Fixed Dockerfile att1

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -5,10 +5,14 @@ FROM python:3.9-slim
5
  ENV PYTHONDONTWRITEBYTECODE 1
6
  ENV PYTHONUNBUFFERED 1
7
 
 
 
 
 
8
  # Set a working directory in the container
9
  WORKDIR /app
10
 
11
- # Install system dependencies required for SentencePiece
12
  RUN apt-get update && apt-get install -y --no-install-recommends \
13
  build-essential \
14
  cmake \
 
5
  ENV PYTHONDONTWRITEBYTECODE 1
6
  ENV PYTHONUNBUFFERED 1
7
 
8
+ # Create and set permissions for a custom cache directory
9
+ RUN mkdir -p /cache/huggingface && chmod -R 777 /cache
10
+ ENV TRANSFORMERS_CACHE=/cache/huggingface
11
+
12
  # Set a working directory in the container
13
  WORKDIR /app
14
 
15
+ # Install system dependencies for SentencePiece
16
  RUN apt-get update && apt-get install -y --no-install-recommends \
17
  build-essential \
18
  cmake \