ShawnAI commited on
Commit
462f7cc
1 Parent(s): 47f7948

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -26
Dockerfile CHANGED
@@ -1,26 +0,0 @@
1
- FROM python:3.11
2
-
3
- WORKDIR /code
4
-
5
-
6
- COPY ./requirements.txt /code/requirements.txt
7
-
8
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
-
10
- # Set up a new user named "user" with user ID 1000
11
- RUN useradd -m -u 1000 user
12
- # Switch to the "user" user
13
- USER user
14
- # Set home to the user's home directory
15
- ENV HOME=/home/user \
16
- PATH=/home/user/.local/bin:$PATH
17
-
18
- # Set the working directory to the user's home directory
19
- WORKDIR $HOME/app
20
-
21
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
22
- COPY --chown=user . $HOME/app
23
-
24
- EXPOSE 7860
25
-
26
- CMD python3 -u app.py