Spaces:
Sleeping
Sleeping
Sagar Thacker
commited on
Commit
·
eac4b85
1
Parent(s):
cda3fc0
updated dcokerfile
Browse files- Dockerfile +3 -7
Dockerfile
CHANGED
@@ -9,10 +9,6 @@ COPY ["Pipfile", "Pipfile.lock", "./code/"]
|
|
9 |
|
10 |
RUN cd code && pip install pipenv && pipenv install --system --deploy --ignore-pipfile
|
11 |
|
12 |
-
COPY ["model.py", "app.py", "/code/"]
|
13 |
-
COPY ["models", "/code/models/"]
|
14 |
-
COPY ["data", "/code/data/"]
|
15 |
-
|
16 |
# Set up a new user named "user" with user ID 1000
|
17 |
RUN useradd -m -u 1000 user
|
18 |
# Switch to the "user" user
|
@@ -22,9 +18,9 @@ ENV HOME=/home/user \
|
|
22 |
PATH=/home/user/.local/bin:$PATH
|
23 |
|
24 |
# Set the working directory to the user's home directory
|
25 |
-
WORKDIR $HOME/
|
26 |
|
27 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
28 |
-
COPY --chown=user . $HOME/
|
29 |
|
30 |
-
CMD ["gradio", "
|
|
|
9 |
|
10 |
RUN cd code && pip install pipenv && pipenv install --system --deploy --ignore-pipfile
|
11 |
|
|
|
|
|
|
|
|
|
12 |
# Set up a new user named "user" with user ID 1000
|
13 |
RUN useradd -m -u 1000 user
|
14 |
# Switch to the "user" user
|
|
|
18 |
PATH=/home/user/.local/bin:$PATH
|
19 |
|
20 |
# Set the working directory to the user's home directory
|
21 |
+
WORKDIR $HOME/app
|
22 |
|
23 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
24 |
+
COPY --chown=user . $HOME/app
|
25 |
|
26 |
+
CMD ["gradio", "app.py"]
|