Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files16 unmodified lines171819202122232425262728293031323334353616 unmodified lines# Create a working directoryWORKDIR /app# Create cache directoryRUN mkdir -p /cache && chmod +x /cache# Set the cache environment variableENV TRANSFORMERS_CACHE=/cache# Copy the current directory contents into the container at /appCOPY . /app# Install requirementsRUN pip install --upgrade pip && pip install -r /app/requirements.txt# Unzip the data.zip file into the /app/data directoryRUN unzip data.zip -d /app/data# Set the default command to run when starting the containerCMD ["python", "2.py"]16 unmodified lines171819202122232425262728293031323334353637383916 unmodified lines# Create a working directoryWORKDIR /app# Create cache directory with proper permissionsRUN mkdir -p /app/cache && chmod -R 777 /app/cache# Set the cache environment variableENV HF_HOME=/app/cache# Install Python dependenciesRUN pip install --upgrade pip# Copy the current directory contents into the container at /appCOPY . /app# Install requirementsRUN pip install -r requirements.txt# Unzip the data.zip file into the /app/data directoryRUN unzip data.zip -d /app/data# Set the default command to run when starting the containerCMD ["python", "m5.py"]
Dockerfile+8-5