Spaces:
Sleeping
Sleeping
circulartext
commited on
Commit
·
f9900a1
1
Parent(s):
c0e77ac
Update Dockerfile
Browse files- Dockerfile +7 -10
Dockerfile
CHANGED
@@ -4,18 +4,15 @@ FROM circulartextapp/lastread
|
|
4 |
# Set up a new user named "user" with user ID 1000
|
5 |
RUN useradd -m -u 1000 user
|
6 |
|
7 |
-
#
|
8 |
-
|
9 |
-
|
10 |
-
# Set home to the user's home directory
|
11 |
-
ENV HOME=/home/user \
|
12 |
-
PATH=/home/user/.local/bin:$PATH
|
13 |
|
14 |
-
#
|
15 |
-
|
16 |
|
17 |
-
#
|
18 |
-
|
19 |
|
20 |
# Example CMD (modify as needed)
|
21 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
4 |
# Set up a new user named "user" with user ID 1000
|
5 |
RUN useradd -m -u 1000 user
|
6 |
|
7 |
+
# Set the working directory to /app
|
8 |
+
WORKDIR /app
|
|
|
|
|
|
|
|
|
9 |
|
10 |
+
# Copy the current directory contents into the container at /app
|
11 |
+
COPY . /app
|
12 |
|
13 |
+
# Switch to the "user" user
|
14 |
+
USER user
|
15 |
|
16 |
# Example CMD (modify as needed)
|
17 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
18 |
+
|