Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: robsonpeixoto/echo-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.3.0
Choose a base ref
...
head repository: robsonpeixoto/echo-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 4 commits
  • 3 files changed
  • 1 contributor

Commits on Sep 30, 2024

  1. Copy the full SHA
    61b5cb3 View commit details
  2. chore: upgrade go version

    robsonpeixoto committed Sep 30, 2024
    Copy the full SHA
    75f2db5 View commit details

Commits on Nov 13, 2024

  1. Copy the full SHA
    11e4acc View commit details
  2. style: format Dockerfile

    robsonpeixoto committed Nov 13, 2024
    Copy the full SHA
    b3c5f2a View commit details
Showing with 10 additions and 10 deletions.
  1. +6 −6 Dockerfile
  2. +2 −2 go.mod
  3. +2 −2 go.sum
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
ARG GO_VERSION=1.22.5
ARG GO_VERSION=1.23.3
ARG ALPINE_VERSION=3.20

FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS builder
ARG TARGETOS
ARG TARGETARCH
WORKDIR /src
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=bind,source=go.mod,target=go.mod \
--mount=type=bind,source=go.sum,target=go.sum \
go mod download -x
--mount=type=bind,source=go.mod,target=go.mod \
--mount=type=bind,source=go.sum,target=go.sum \
go mod download -x

RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=bind,target=. \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /usr/local/bin/app .
--mount=type=bind,target=. \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /usr/local/bin/app .

FROM --platform=$BUILDPLATFORM alpine:${ALPINE_VERSION}
COPY --from=builder /usr/local/bin/app /usr/local/bin/app
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/robsonpeixoto/echo-server

go 1.22
go 1.23

require go.uber.org/automaxprocs v1.5.3
require go.uber.org/automaxprocs v1.6.0
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4
github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U=
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
go.uber.org/automaxprocs v1.5.3 h1:kWazyxZUrS3Gs4qUpbwo5kEIMGe/DAvi5Z4tl2NW4j8=
go.uber.org/automaxprocs v1.5.3/go.mod h1:eRbA25aqJrxAbsLO0xy5jVwPt7FQnRgjW+efnwa1WM0=
go.uber.org/automaxprocs v1.6.0 h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs=
go.uber.org/automaxprocs v1.6.0/go.mod h1:ifeIMSnPZuznNm6jmdzmU3/bfk01Fe2fotchwEFJ8r8=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=