File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1616WORKDIR /app
1717RUN go mod init hello-app-cdn
1818COPY *.go ./
@@ -21,6 +21,6 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /hello-app-cdn
2121FROM gcr.io/distroless/base-debian11
2222WORKDIR /
2323COPY --from=builder /hello-app-cdn /hello-app-cdn
24- ENV PORT 8080
24+ ENV PORT= 8080
2525USER nonroot:nonroot
26- CMD ["/hello-app-cdn" ]
26+ CMD ["/hello-app-cdn" ]
Original file line number Diff line number Diff line change 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
1616WORKDIR /app
1717RUN go mod init hello-app-redis
1818COPY * ./
@@ -21,6 +21,6 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /hello-app-redis
2121FROM gcr.io/distroless/base-debian11
2222WORKDIR /
2323COPY --from=builder /hello-app-redis /hello-app-redis
24- ENV PORT 8080
24+ ENV PORT= 8080
2525USER nonroot:nonroot
26- CMD ["/hello-app-redis" ]
26+ CMD ["/hello-app-redis" ]
Original file line number Diff line number Diff line change 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
1616WORKDIR /app
1717RUN go mod init hello-app-tls
1818COPY *.go ./
@@ -22,4 +22,4 @@ FROM gcr.io/distroless/base-debian11
2222WORKDIR /
2323COPY --from=builder /hello-app-tls /hello-app-tls
2424USER nonroot:nonroot
25- CMD ["/hello-app-tls" ]
25+ CMD ["/hello-app-tls" ]
Original file line number Diff line number Diff line change 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
2020WORKDIR /app
2121
2222# Initialize a new Go module.
Original file line number Diff line number Diff line change 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.
2121WORKDIR /app
Original file line number Diff line number Diff line change 1818FROM python:3.13-slim
1919
2020# Copy local code to the container image.
21- ENV APP_HOME /app
21+ ENV APP_HOME= /app
2222WORKDIR $APP_HOME
2323COPY . ./
2424
You can’t perform that action at this time.
0 commit comments