Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
@@ -1,11 +1,9 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.8-slim
|
3 |
|
4 |
-
|
5 |
-
WORKDIR /app
|
6 |
-
|
7 |
-
# Copy the current directory contents into the container at /app
|
8 |
-
COPY . /app
|
9 |
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --trusted-host pypi.python.org flask torch transformers peft
|
@@ -13,7 +11,7 @@ RUN pip install --trusted-host pypi.python.org flask torch transformers peft
|
|
13 |
# Make port 5000 available to the world outside this container
|
14 |
EXPOSE 7860
|
15 |
|
16 |
-
ENV TRANSFORMERS_CACHE /app/.cache/huggingface
|
17 |
|
18 |
# Define environment variable
|
19 |
ENV MODEL_NAME "IlyaGusev/saiga2_70b_lora"
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.8-slim
|
3 |
|
4 |
+
RUN useradd -m -u 1000 user
|
5 |
+
WORKDIR /home/user/app
|
6 |
+
COPY --link --chown=1000 ./ /home/user/app
|
|
|
|
|
7 |
|
8 |
# Install any needed packages specified in requirements.txt
|
9 |
RUN pip install --trusted-host pypi.python.org flask torch transformers peft
|
|
|
11 |
# Make port 5000 available to the world outside this container
|
12 |
EXPOSE 7860
|
13 |
|
14 |
+
ENV TRANSFORMERS_CACHE /home/user/app/.cache/huggingface
|
15 |
|
16 |
# Define environment variable
|
17 |
ENV MODEL_NAME "IlyaGusev/saiga2_70b_lora"
|