Spaces:
Running
Running
env
Browse files- Dockerfile +0 -16
Dockerfile
CHANGED
@@ -5,22 +5,6 @@ COPY ./ ./
|
|
5 |
# Install dependencies
|
6 |
RUN pip install --no-cache --upgrade -r /requirements.txt
|
7 |
|
8 |
-
# Set up a new user named "user" with user ID 1000
|
9 |
-
RUN useradd -m -u 1000 user
|
10 |
-
|
11 |
-
# Switch to the "user" user
|
12 |
-
USER user
|
13 |
-
|
14 |
-
# Corrected: Define environment variables separately
|
15 |
-
ENV HOME=/home/user
|
16 |
-
ENV PATH=/home/user/.local/bin:$PATH
|
17 |
-
|
18 |
-
# Set the working directory to the user's home directory
|
19 |
-
WORKDIR $HOME/app
|
20 |
-
|
21 |
-
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
22 |
-
COPY --chown=user . $HOME/app
|
23 |
-
|
24 |
# Start the application
|
25 |
CMD ["uvicorn", "backend.api.app:app", "--host", "0.0.0.0", "--port", "7860"]
|
26 |
|
|
|
5 |
# Install dependencies
|
6 |
RUN pip install --no-cache --upgrade -r /requirements.txt
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
# Start the application
|
9 |
CMD ["uvicorn", "backend.api.app:app", "--host", "0.0.0.0", "--port", "7860"]
|
10 |
|