mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-25 15:29:49 +03:00
Remove extra spaces in Dockerfile COPY
instruction paths (#5822)
This commit is contained in:
parent
802f2e4e59
commit
d42fc65750
|
@ -17,7 +17,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
COPY ./requirements .
|
COPY ./requirements .
|
||||||
|
|
||||||
# Create Python Dependency and Sub-Dependency Wheels.
|
# Create Python Dependency and Sub-Dependency Wheels.
|
||||||
RUN pip wheel --wheel-dir /usr/src/app/wheels \
|
RUN pip wheel --wheel-dir /usr/src/app/wheels \
|
||||||
-r ${BUILD_ENVIRONMENT}.txt
|
-r ${BUILD_ENVIRONMENT}.txt
|
||||||
|
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ RUN groupadd --gid 1000 dev-user \
|
||||||
# Install required system dependencies
|
# Install required system dependencies
|
||||||
RUN apt-get update && apt-get install --no-install-recommends -y \
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
# psycopg dependencies
|
# psycopg dependencies
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
wait-for-it \
|
wait-for-it \
|
||||||
# Translations dependencies
|
# Translations dependencies
|
||||||
gettext \
|
gettext \
|
||||||
|
@ -58,7 +58,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
|
|
||||||
# All absolute dir copies ignore workdir instruction. All relative dir copies are wrt to the workdir instruction
|
# All absolute dir copies ignore workdir instruction. All relative dir copies are wrt to the workdir instruction
|
||||||
# copy python dependency wheels from python-build-stage
|
# copy python dependency wheels from python-build-stage
|
||||||
COPY --from=python-build-stage /usr/src/app/wheels /wheels/
|
COPY --from=python-build-stage /usr/src/app/wheels /wheels/
|
||||||
|
|
||||||
# use wheels to install python dependencies
|
# use wheels to install python dependencies
|
||||||
RUN pip install --no-cache-dir --no-index --find-links=/wheels/ /wheels/* \
|
RUN pip install --no-cache-dir --no-index --find-links=/wheels/ /wheels/* \
|
||||||
|
|
|
@ -20,7 +20,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
COPY ./requirements /requirements
|
COPY ./requirements /requirements
|
||||||
|
|
||||||
# create python dependency wheels
|
# create python dependency wheels
|
||||||
RUN pip wheel --no-cache-dir --wheel-dir /usr/src/app/wheels \
|
RUN pip wheel --no-cache-dir --wheel-dir /usr/src/app/wheels \
|
||||||
-r /requirements/local.txt -r /requirements/production.txt \
|
-r /requirements/local.txt -r /requirements/production.txt \
|
||||||
&& rm -rf /requirements
|
&& rm -rf /requirements
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
COPY ./requirements .
|
COPY ./requirements .
|
||||||
|
|
||||||
# Create Python Dependency and Sub-Dependency Wheels.
|
# Create Python Dependency and Sub-Dependency Wheels.
|
||||||
RUN pip wheel --wheel-dir /usr/src/app/wheels \
|
RUN pip wheel --wheel-dir /usr/src/app/wheels \
|
||||||
-r ${BUILD_ENVIRONMENT}.txt
|
-r ${BUILD_ENVIRONMENT}.txt
|
||||||
|
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
|
|
||||||
# All absolute dir copies ignore workdir instruction. All relative dir copies are wrt to the workdir instruction
|
# All absolute dir copies ignore workdir instruction. All relative dir copies are wrt to the workdir instruction
|
||||||
# copy python dependency wheels from python-build-stage
|
# copy python dependency wheels from python-build-stage
|
||||||
COPY --from=python-build-stage /usr/src/app/wheels /wheels/
|
COPY --from=python-build-stage /usr/src/app/wheels /wheels/
|
||||||
|
|
||||||
# use wheels to install python dependencies
|
# use wheels to install python dependencies
|
||||||
RUN pip install --no-cache-dir --no-index --find-links=/wheels/ /wheels/* \
|
RUN pip install --no-cache-dir --no-index --find-links=/wheels/ /wheels/* \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user