Skip to content

Commit 8a1a07e

Browse files
committed
Use build stage names similar to other templates
Primarily changing the -er suffix. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent bf6afb7 commit 8a1a07e

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

template/python27-flask/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM ghcr.io/openfaas/of-watchdog:0.9.3 as watchdog
2-
FROM python:2.7-alpine as builder
2+
FROM python:2.7-alpine as build
33

44
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
55
RUN chmod +x /usr/bin/fwatchdog
@@ -36,7 +36,7 @@ USER root
3636
COPY --chown=app:app function function
3737
USER app
3838

39-
FROM builder as final
39+
FROM build as ship
4040

4141
ENV fprocess="python index.py"
4242
ENV cgi_headers="true"

template/python3-flask-debian/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.8 as watchdog
2-
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-slim-buster as builder
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-slim-buster as build
33

44
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
55
RUN chmod +x /usr/bin/fwatchdog
@@ -41,13 +41,13 @@ USER root
4141

4242
COPY --chown=app:app function/ .
4343

44-
FROM builder as tester
44+
FROM build as test
4545
ARG TEST_COMMAND=tox
4646
ARG TEST_ENABLED=true
4747
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4848

4949

50-
FROM builder as final
50+
FROM build as ship
5151
WORKDIR /home/app/
5252

5353
#configure WSGI server and healthcheck

template/python3-flask/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.8 as watchdog
2-
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-alpine as builder
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-alpine as build
33

44
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
55
RUN chmod +x /usr/bin/fwatchdog
@@ -40,12 +40,12 @@ USER root
4040
COPY --chown=app:app function/ .
4141

4242

43-
FROM builder as tester
43+
FROM build as test
4444
ARG TEST_COMMAND=tox
4545
ARG TEST_ENABLED=true
4646
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4747

48-
FROM builder as final
48+
FROM build as ship
4949
WORKDIR /home/app/
5050

5151
#configure WSGI server and healthcheck

template/python3-http-debian/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.8 as watchdog
2-
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-slim-buster as builder
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-slim-buster as build
33

44
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
55
RUN chmod +x /usr/bin/fwatchdog
@@ -36,14 +36,14 @@ RUN pip install --no-cache-dir --user -r requirements.txt
3636
USER root
3737
COPY --chown=app:app function/ .
3838

39-
FROM builder as tester
39+
FROM build as test
4040

4141
ARG TEST_COMMAND=tox
4242
ARG TEST_ENABLED=true
4343
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4444

4545

46-
FROM builder as final
46+
FROM build as ship
4747
WORKDIR /home/app/
4848

4949
USER app

template/python3-http/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.8 as watchdog
2-
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-alpine as builder
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-alpine as build
33

44
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
55
RUN chmod +x /usr/bin/fwatchdog
@@ -37,12 +37,12 @@ RUN pip install --no-cache-dir --user -r requirements.txt
3737
USER root
3838
COPY --chown=app:app function/ .
3939

40-
FROM builder as tester
40+
FROM build as test
4141
ARG TEST_COMMAND=tox
4242
ARG TEST_ENABLED=true
4343
RUN [ "$TEST_ENABLED" = "false" ] && echo "skipping tests" || eval "$TEST_COMMAND"
4444

45-
FROM builder as final
45+
FROM build as ship
4646
WORKDIR /home/app/
4747

4848
# configure WSGI server and healthcheck

0 commit comments

Comments
 (0)