Spaces:
Build error
Build error
Fix write permission
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -2,7 +2,8 @@ FROM python:slim
|
|
2 |
|
3 |
# Install system-level dependencies
|
4 |
RUN apt-get update && apt-get install -y build-essential portaudio19-dev libffi-dev libssl-dev ffmpeg
|
5 |
-
|
|
|
6 |
WORKDIR /realtime_ai_character
|
7 |
|
8 |
# Install Python dependencies
|
@@ -10,9 +11,9 @@ COPY requirements.txt /realtime_ai_character
|
|
10 |
RUN pip install -r /realtime_ai_character/requirements.txt
|
11 |
|
12 |
# Copy the project files
|
13 |
-
COPY ./ /realtime_ai_character
|
14 |
|
15 |
-
# Expose 7860 port from the docker image.
|
16 |
EXPOSE 7860
|
17 |
|
18 |
# Make the entrypoint script executable
|
|
|
2 |
|
3 |
# Install system-level dependencies
|
4 |
RUN apt-get update && apt-get install -y build-essential portaudio19-dev libffi-dev libssl-dev ffmpeg
|
5 |
+
RUN useradd -m -u 1000 user
|
6 |
+
USER user
|
7 |
WORKDIR /realtime_ai_character
|
8 |
|
9 |
# Install Python dependencies
|
|
|
11 |
RUN pip install -r /realtime_ai_character/requirements.txt
|
12 |
|
13 |
# Copy the project files
|
14 |
+
COPY --chown=user ./ /realtime_ai_character
|
15 |
|
16 |
+
# Expose 7860. port from the docker image.
|
17 |
EXPOSE 7860
|
18 |
|
19 |
# Make the entrypoint script executable
|