Falln87 commited on
Commit
1cefb68
·
verified ·
1 Parent(s): 94149ee

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -1,8 +1,17 @@
1
  FROM ghcr.io/huggingface/text-generation-inference:latest
2
 
3
- COPY . /app
4
- WORKDIR /app
5
 
 
 
 
 
 
 
 
 
 
6
  EXPOSE 80
7
 
8
  CMD ["text-generation-inference", "--model-id", "mistralai/Mistral-7B-Instruct-v0.1"]
 
1
  FROM ghcr.io/huggingface/text-generation-inference:latest
2
 
3
+ # Set up a new user named "user" with user ID 1000
4
+ RUN useradd -m -u 1000 user
5
 
6
+ # Switch to the "user" user
7
+ USER user
8
+
9
+ # Set home to the user's home directory
10
+ ENV HOME=/home/user \
11
+ PATH=/home/user/.local/bin:$PATH
12
+
13
+ # Set the working directory to the user's home directory
14
+ WORKDIR $HOME/
15
  EXPOSE 80
16
 
17
  CMD ["text-generation-inference", "--model-id", "mistralai/Mistral-7B-Instruct-v0.1"]