Create directories for app code and remove redundant code
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -16,6 +16,9 @@ ENV HOME=/home/user \
|
|
16 |
PATH=/home/user/.local/bin:$PATH
|
17 |
WORKDIR $HOME
|
18 |
|
|
|
|
|
|
|
19 |
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
|
20 |
# RUN pip install --no-cache-dir --upgrade pip
|
21 |
|
@@ -38,9 +41,6 @@ ENV PATH="$HOME/.venv/bin:$PATH"
|
|
38 |
# Install dependencies using Poetry
|
39 |
RUN poetry install --no-dev
|
40 |
|
41 |
-
# Create a directory for the app code
|
42 |
-
RUN mkdir -p $HOME/src $HOME/data $HOME/config
|
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
|
|
|
16 |
PATH=/home/user/.local/bin:$PATH
|
17 |
WORKDIR $HOME
|
18 |
|
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 |
|
|
|
41 |
# Install dependencies using Poetry
|
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
|