Shubham Krishna commited on
Commit
ae4f836
·
1 Parent(s): a6d641b

Change oder

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -10,6 +10,12 @@ USER user
10
  ENV HOME=/home/user \
11
  PATH=/home/user/.local/bin:$PATH
12
 
 
 
 
 
 
 
13
  # install poetry
14
  RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.4.2 python3 -
15
 
@@ -19,12 +25,6 @@ COPY pyproject.toml poetry.lock ./
19
  # Install dependencies
20
  RUN poetry config virtualenvs.create false && poetry install --no-root --no-interaction
21
 
22
- # Set the working directory to the user's home directory
23
- WORKDIR $HOME/app
24
-
25
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
26
- COPY --chown=user . $HOME/app
27
-
28
  EXPOSE 7860
29
 
30
  CMD ["python", "./hello_world/app.py"]
 
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/app
15
+
16
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
17
+ COPY --chown=user . $HOME/app
18
+
19
  # install poetry
20
  RUN curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.4.2 python3 -
21
 
 
25
  # Install dependencies
26
  RUN poetry config virtualenvs.create false && poetry install --no-root --no-interaction
27
 
 
 
 
 
 
 
28
  EXPOSE 7860
29
 
30
  CMD ["python", "./hello_world/app.py"]