Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
# Set the working directory inside the container to /app
|
|
@@ -11,9 +11,9 @@ COPY . .
|
|
| 11 |
RUN pip3 install -r requirements.txt
|
| 12 |
|
| 13 |
RUN useradd -m -u 1000 user
|
|
|
|
| 14 |
USER user
|
| 15 |
-
ENV HOME=/home/user
|
| 16 |
-
PATH=/home/user/.local/bin:$PATH
|
| 17 |
|
| 18 |
WORKDIR $HOME/app
|
| 19 |
|
|
|
|
| 1 |
+
|
| 2 |
FROM python:3.9
|
| 3 |
|
| 4 |
# Set the working directory inside the container to /app
|
|
|
|
| 11 |
RUN pip3 install -r requirements.txt
|
| 12 |
|
| 13 |
RUN useradd -m -u 1000 user
|
| 14 |
+
ENV HF_TOKEN {hf_token}
|
| 15 |
USER user
|
| 16 |
+
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH
|
|
|
|
| 17 |
|
| 18 |
WORKDIR $HOME/app
|
| 19 |
|