Spaces:
Paused
Paused
update
Browse files- Dockerfile +13 -5
Dockerfile
CHANGED
@@ -10,12 +10,20 @@ RUN apt-get update && \
|
|
10 |
apt-get install -y libgomp1 bash git git-lfs wget curl procps htop vim nano && \
|
11 |
rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
-
|
14 |
-
|
15 |
|
16 |
-
|
17 |
-
USER
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
EXPOSE 7860
|
20 |
|
21 |
-
ENTRYPOINT ["/app/rpc-server", "-p", "7860", "-H", "0.0.0.0"]
|
|
|
10 |
apt-get install -y libgomp1 bash git git-lfs wget curl procps htop vim nano && \
|
11 |
rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
+
# Set up a new user named "user" with user ID 1000
|
14 |
+
RUN useradd -m -u 1000 user
|
15 |
|
16 |
+
# Switch to the "user" user
|
17 |
+
USER user
|
18 |
+
|
19 |
+
# Set home to the user's home directory
|
20 |
+
ENV HOME=/home/user \
|
21 |
+
PATH=/home/user/.local/bin:$PATH
|
22 |
+
|
23 |
+
# Set the working directory to the user's home directory
|
24 |
+
WORKDIR $HOME/app
|
25 |
+
COPY --chown=user rpc-server $HOME/app
|
26 |
|
27 |
EXPOSE 7860
|
28 |
|
29 |
+
ENTRYPOINT ["$HOME/app/rpc-server", "-p", "7860", "-H", "0.0.0.0"]
|