File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -15,28 +15,17 @@ RUN pip3 install --no-cache-dir -U pip
15
15
RUN rm -r /opt/bitnami/python/lib/python3.8/site-packages/setuptools*
16
16
# Install pipenv and setuptools
17
17
RUN pip3 install --no-cache-dir -U pipenv setuptools
18
- RUN install_packages pipenv git openssh-client
18
+ RUN install_packages git openssh-client
19
19
20
20
# Import Python packages
21
21
COPY Pipfile Pipfile.lock ./
22
22
23
23
24
- FROM builder AS dev-builder
25
- # Install Python packages
24
+ FROM builder AS dev
25
+ # Install Python development packages
26
26
RUN pipenv install --dev --system
27
27
28
28
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
-
40
29
FROM builder AS prod
41
30
# Install Python packages
42
31
RUN pipenv install --system --deploy
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ services:
8
8
image : reuse-api-quality
9
9
container_name : reuse-api-quality
10
10
build :
11
- target : quality
11
+ target : dev
12
12
context : .
You can’t perform that action at this time.
0 commit comments