You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN pip install --no-cache-dir -r requirements.txt*# Copy the entire project*
COPY . .
If we run pip install and then copy all (last command), we are copying any dependencies that are installed in our local folder (including other things), this increases the image size unnecessary (e.g. if my local venv has other dependencies). I would not do COPY . . and instead just copy the besser folder + other files in root folder (if necessary)
Same in django generated dockerfile:
*# Copy the application files into the container*
COPY . /code/
The text was updated successfully, but these errors were encountered:
Dockerfile in BESSER:
*# Copy requirements.txt first for better caching*
COPY besser/utilities/web_modeling_editor/backend/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt*# Copy the entire project*
COPY . .
If we run pip install and then copy all (last command), we are copying any dependencies that are installed in our local folder (including other things), this increases the image size unnecessary (e.g. if my local venv has other dependencies). I would not do
COPY . .
and instead just copy the besser folder + other files in root folder (if necessary)Same in django generated dockerfile:
*# Copy the application files into the container*
COPY . /code/
The text was updated successfully, but these errors were encountered: