Skip to content

Commit d42fc65

Browse files
authored
Remove extra spaces in Dockerfile COPY instruction paths (#5822)
1 parent 802f2e4 commit d42fc65

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

{{cookiecutter.project_slug}}/compose/local/django/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
1717
COPY ./requirements .
1818

1919
# Create Python Dependency and Sub-Dependency Wheels.
20-
RUN pip wheel --wheel-dir /usr/src/app/wheels \
20+
RUN pip wheel --wheel-dir /usr/src/app/wheels \
2121
-r ${BUILD_ENVIRONMENT}.txt
2222

2323

@@ -48,7 +48,7 @@ RUN groupadd --gid 1000 dev-user \
4848
# Install required system dependencies
4949
RUN apt-get update && apt-get install --no-install-recommends -y \
5050
# psycopg dependencies
51-
libpq-dev \
51+
libpq-dev \
5252
wait-for-it \
5353
# Translations dependencies
5454
gettext \
@@ -58,7 +58,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
5858

5959
# All absolute dir copies ignore workdir instruction. All relative dir copies are wrt to the workdir instruction
6060
# copy python dependency wheels from python-build-stage
61-
COPY --from=python-build-stage /usr/src/app/wheels /wheels/
61+
COPY --from=python-build-stage /usr/src/app/wheels /wheels/
6262

6363
# use wheels to install python dependencies
6464
RUN pip install --no-cache-dir --no-index --find-links=/wheels/ /wheels/* \

{{cookiecutter.project_slug}}/compose/local/docs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
2020
COPY ./requirements /requirements
2121

2222
# create python dependency wheels
23-
RUN pip wheel --no-cache-dir --wheel-dir /usr/src/app/wheels \
23+
RUN pip wheel --no-cache-dir --wheel-dir /usr/src/app/wheels \
2424
-r /requirements/local.txt -r /requirements/production.txt \
2525
&& rm -rf /requirements
2626

{{cookiecutter.project_slug}}/compose/production/django/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
4444
COPY ./requirements .
4545

4646
# Create Python Dependency and Sub-Dependency Wheels.
47-
RUN pip wheel --wheel-dir /usr/src/app/wheels \
47+
RUN pip wheel --wheel-dir /usr/src/app/wheels \
4848
-r ${BUILD_ENVIRONMENT}.txt
4949

5050

@@ -78,7 +78,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
7878

7979
# All absolute dir copies ignore workdir instruction. All relative dir copies are wrt to the workdir instruction
8080
# copy python dependency wheels from python-build-stage
81-
COPY --from=python-build-stage /usr/src/app/wheels /wheels/
81+
COPY --from=python-build-stage /usr/src/app/wheels /wheels/
8282

8383
# use wheels to install python dependencies
8484
RUN pip install --no-cache-dir --no-index --find-links=/wheels/ /wheels/* \

0 commit comments

Comments
 (0)