Skip to content

Commit bf6afb7

Browse files
committed
Fix issue with multi-stage build
Fixes: #63 - introduced via #62 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 79b444b commit bf6afb7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

template/python3-flask-debian/Dockerfile

Lines changed: 1 addition & 1 deletion
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
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-slim-buster as builder
33

44
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
55
RUN chmod +x /usr/bin/fwatchdog

template/python3-flask/Dockerfile

Lines changed: 1 addition & 1 deletion
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
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-alpine as builder
33

44
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
55
RUN chmod +x /usr/bin/fwatchdog

template/python3-http-debian/Dockerfile

Lines changed: 1 addition & 1 deletion
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
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-slim-buster as builder
33

44
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
55
RUN chmod +x /usr/bin/fwatchdog

template/python3-http/Dockerfile

Lines changed: 1 addition & 1 deletion
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
2+
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.7-alpine as builder
33

44
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
55
RUN chmod +x /usr/bin/fwatchdog

0 commit comments

Comments
 (0)