Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/fixtures/dockerfiles/go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.23
ENV PORT=80
EXPOSE 80

Expand All @@ -9,4 +9,4 @@ ARG GO111MODULE=off
RUN go build -v -o app ./main.go
RUN mv ./app /go/bin/

CMD ["app"]
CMD ["app"]
2 changes: 1 addition & 1 deletion pkg/fixtures/dockerfiles/gomodule/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23 AS builder
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.23 as builder

WORKDIR /build
COPY go.mod go.sum ./
Expand Down
4 changes: 2 additions & 2 deletions template/dockerfiles/go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:{{ .Config.GetVariableValue "VERSION" }}
FROM mcr.microsoft.com/oss/go/microsoft/golang:{{ .Config.GetVariableValue "VERSION"}}
ENV PORT={{ .Config.GetVariableValue "PORT" }}
EXPOSE {{ .Config.GetVariableValue "PORT" }}

Expand All @@ -9,4 +9,4 @@ ARG GO111MODULE=off
RUN go build -v -o app ./main.go
RUN mv ./app /go/bin/

CMD ["app"]
CMD ["app"]
2 changes: 1 addition & 1 deletion template/dockerfiles/gomodule/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:{{ .Config.GetVariableValue "VERSION" }} AS builder
FROM mcr.microsoft.com/oss/go/microsoft/golang:{{ .Config.GetVariableValue "VERSION"}} as builder

WORKDIR /build
COPY go.mod go.sum ./
Expand Down
Loading