Skip to content

Commit 643bb3d

Browse files
committed
throwing out Docker layers and targets that do not seem to be used
1 parent 6da64a1 commit 643bb3d

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

Dockerfile

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,17 @@ RUN pip3 install --no-cache-dir -U pip
1515
RUN rm -r /opt/bitnami/python/lib/python3.8/site-packages/setuptools*
1616
# Install pipenv and setuptools
1717
RUN pip3 install --no-cache-dir -U pipenv setuptools
18-
RUN install_packages pipenv git openssh-client
18+
RUN install_packages git openssh-client
1919

2020
# Import Python packages
2121
COPY Pipfile Pipfile.lock ./
2222

2323

24-
FROM builder AS dev-builder
25-
# Install Python packages
24+
FROM builder AS dev
25+
# Install Python development packages
2626
RUN pipenv install --dev --system
2727

2828

29-
FROM dev-builder as quality
30-
# Install make
31-
RUN install_packages make
32-
33-
34-
FROM dev-builder as dev
35-
# Copy application code and tests
36-
COPY . .
37-
CMD gunicorn --bind 0.0.0.0:8000 "reuse_api:create_app()"
38-
39-
4029
FROM builder AS prod
4130
# Install Python packages
4231
RUN pipenv install --system --deploy

docker-compose.quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ services:
88
image: reuse-api-quality
99
container_name: reuse-api-quality
1010
build:
11-
target: quality
11+
target: dev
1212
context: .

0 commit comments

Comments
 (0)