Spaces:
Sleeping
Sleeping
shivakerur99
commited on
Commit
•
09e0391
1
Parent(s):
94a74df
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -34,10 +34,10 @@
|
|
34 |
|
35 |
FROM python:3.9
|
36 |
# Set working directory
|
37 |
-
WORKDIR /
|
38 |
|
39 |
# Copy requirements file
|
40 |
-
COPY ./requirements.txt /
|
41 |
|
42 |
# Install Python dependencies
|
43 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
@@ -56,13 +56,13 @@ ENV HOME=/home/user \
|
|
56 |
PATH=/home/user/.local/bin:$PATH
|
57 |
|
58 |
# Set working directory for the user
|
59 |
-
WORKDIR $HOME/
|
60 |
|
61 |
# Copy application code
|
62 |
-
COPY --chown=user . $HOME/
|
63 |
|
64 |
# Run the application
|
65 |
-
CMD ["uvicorn", "main:
|
66 |
|
67 |
|
68 |
|
|
|
34 |
|
35 |
FROM python:3.9
|
36 |
# Set working directory
|
37 |
+
WORKDIR /code1
|
38 |
|
39 |
# Copy requirements file
|
40 |
+
COPY ./requirements.txt /code1/requirements.txt
|
41 |
|
42 |
# Install Python dependencies
|
43 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
56 |
PATH=/home/user/.local/bin:$PATH
|
57 |
|
58 |
# Set working directory for the user
|
59 |
+
WORKDIR $HOME/app1
|
60 |
|
61 |
# Copy application code
|
62 |
+
COPY --chown=user . $HOME/app1
|
63 |
|
64 |
# Run the application
|
65 |
+
CMD ["uvicorn", "main:app1", "--host", "0.0.0.0", "--port", "7860"]
|
66 |
|
67 |
|
68 |
|