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