Skip to content

Commit f2f8df1

Browse files
committed
Fix quickstart Dockerfile warnings
1 parent 744e5b3 commit f2f8df1

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

quickstarts/hello-app-cdn/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.24.3 as builder
15+
FROM golang:1.24.3 AS builder
1616
WORKDIR /app
1717
RUN go mod init hello-app-cdn
1818
COPY *.go ./
@@ -21,6 +21,6 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /hello-app-cdn
2121
FROM gcr.io/distroless/base-debian11
2222
WORKDIR /
2323
COPY --from=builder /hello-app-cdn /hello-app-cdn
24-
ENV PORT 8080
24+
ENV PORT=8080
2525
USER nonroot:nonroot
26-
CMD ["/hello-app-cdn"]
26+
CMD ["/hello-app-cdn"]

quickstarts/hello-app-redis/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.24.3 as builder
15+
FROM golang:1.24.3 AS builder
1616
WORKDIR /app
1717
RUN go mod init hello-app-redis
1818
COPY * ./
@@ -21,6 +21,6 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /hello-app-redis
2121
FROM gcr.io/distroless/base-debian11
2222
WORKDIR /
2323
COPY --from=builder /hello-app-redis /hello-app-redis
24-
ENV PORT 8080
24+
ENV PORT=8080
2525
USER nonroot:nonroot
26-
CMD ["/hello-app-redis"]
26+
CMD ["/hello-app-redis"]

quickstarts/hello-app-tls/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.24.3 as builder
15+
FROM golang:1.24.3 AS builder
1616
WORKDIR /app
1717
RUN go mod init hello-app-tls
1818
COPY *.go ./
@@ -22,4 +22,4 @@ FROM gcr.io/distroless/base-debian11
2222
WORKDIR /
2323
COPY --from=builder /hello-app-tls /hello-app-tls
2424
USER nonroot:nonroot
25-
CMD ["/hello-app-tls"]
25+
CMD ["/hello-app-tls"]

quickstarts/languages/go/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# Use the offical Go image to create a build artifact.
1717
# This is based on Debian and sets the GOPATH to /go.
1818
# https://hub.docker.com/_/golang
19-
FROM golang:1.24.3 as builder
19+
FROM golang:1.24.3 AS builder
2020
WORKDIR /app
2121

2222
# Initialize a new Go module.

quickstarts/languages/java/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# [START gke_quickstarts_languages_java_dockerfile]
1616
# Use the official maven/Java 8 image to create a build artifact.
1717
# https://hub.docker.com/_/maven
18-
FROM maven:3.6-jdk-8-alpine as builder
18+
FROM maven:3.6-jdk-8-alpine AS builder
1919

2020
# Copy local code to the container image.
2121
WORKDIR /app

quickstarts/languages/python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
FROM python:3.13-slim
1919

2020
# Copy local code to the container image.
21-
ENV APP_HOME /app
21+
ENV APP_HOME=/app
2222
WORKDIR $APP_HOME
2323
COPY . ./
2424

0 commit comments

Comments
 (0)