clean up Dockerfile

This commit is contained in:
2025-12-04 19:42:18 +01:00
parent 3aca5e25b6
commit b761495441
+1 -8
View File
@@ -32,19 +32,12 @@ ENV PIP_ROOT_USER_ACTION=ignore
# Download dependencies as a separate step to take advantage of Docker's caching.
# Leverage a cache mount to /root/.cache/pip to speed up subsequent builds.
# Leverage a bind mount to requirements.txt to avoid having to copy them into
# Leverage a bind mount to requirements.txt to avoid having to copy the file
# into this layer.
RUN --mount=type=cache,target=/root/.cache/pip \
--mount=type=bind,source=requirements.txt,target=/requirements.txt \
python -m pip install -r /requirements.txt
## Copy the Django project and install dependencies
#COPY requirements.txt /app/
#
## run this command to install all dependencies
#RUN pip install --no-cache-dir -r requirements.txt
##RUN pip install --no-cache-dir django-tailwind
# Switch to the non-privileged user to run the application.
USER appuser