Upload Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -4,6 +4,11 @@ FROM python:3.10-slim
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Install system dependencies
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
build-essential \
|
|
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
ENV HF_HOME=/tmp/huggingface
|
| 8 |
+
ENV TRANSFORMERS_CACHE=/tmp/huggingface
|
| 9 |
+
ENV TORCH_HOME=/tmp/torch
|
| 10 |
+
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 11 |
+
|
| 12 |
# Install system dependencies
|
| 13 |
RUN apt-get update && apt-get install -y \
|
| 14 |
build-essential \
|