dsmueller commited on
Commit
fcb60cf
1 Parent(s): 9eb1dec

Update Dockerfile paths for Poetry installation and code copying

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -19,14 +19,11 @@ WORKDIR $HOME
19
  # Create directories for the app code to be copied into
20
  RUN mkdir -p $HOME/src $HOME/data $HOME/config
21
 
22
- # Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
23
- # RUN pip install --no-cache-dir --upgrade pip
24
-
25
  # Install Poetry
26
  RUN pip3 install poetry==1.7.1
27
 
28
  # Copy poetry files
29
- COPY --chown=user /app/aerospace_chatbot/pyproject.toml /app/aerospace_chatbot/poetry.lock* $HOME
30
 
31
  # Disable virtual environments creation by Poetry
32
  # as the Docker container itself is an isolated environment
@@ -42,9 +39,9 @@ ENV PATH="$HOME/.venv/bin:$PATH"
42
  RUN poetry install --no-dev
43
 
44
  # Copy the rest of your application code
45
- COPY --chown=user /app/aerospace_chatbot/src $HOME/src
46
- COPY --chown=user /app/aerospace_chatbot/data $HOME/data
47
- COPY --chown=user /app/aerospace_chatbot/config $HOME/config
48
 
49
  # Expose the port Streamlit runs on
50
  EXPOSE 8501
 
19
  # Create directories for the app code to be copied into
20
  RUN mkdir -p $HOME/src $HOME/data $HOME/config
21
 
 
 
 
22
  # Install Poetry
23
  RUN pip3 install poetry==1.7.1
24
 
25
  # Copy poetry files
26
+ COPY --chown=user /app/pyproject.toml /app/poetry.lock* $HOME
27
 
28
  # Disable virtual environments creation by Poetry
29
  # as the Docker container itself is an isolated environment
 
39
  RUN poetry install --no-dev
40
 
41
  # Copy the rest of your application code
42
+ COPY --chown=user /app/src $HOME/src
43
+ COPY --chown=user /app/data $HOME/data
44
+ COPY --chown=user /app/config $HOME/config
45
 
46
  # Expose the port Streamlit runs on
47
  EXPOSE 8501