Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ A list of `Dockerfile` examples can be found in the [`examples/docker`][3] direc
Here is an example of it in its simplest form:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
WORKDIR /app
COPY . .

Expand Down Expand Up @@ -70,7 +70,7 @@ When CGO is disabled, however, Go usually produces a fully, statically linked bi
This is the recommended approach for most users, using Debian/Ubuntu-based images:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
WORKDIR /app
COPY . .

Expand All @@ -95,7 +95,7 @@ ENTRYPOINT [ "/usr/local/bin/main" ]
If you need CGO but still want a lighter runtime image, build with a Debian-based image and run with Alpine:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
WORKDIR /app
COPY . .

Expand All @@ -120,7 +120,7 @@ ENTRYPOINT [ "/usr/local/bin/main" ]
For minimal build and runtime size, using CGO disabled builds (the default on Alpine):

```dockerfile
FROM golang:1-alpine AS build
FROM golang:1.25.7-alpine AS build
WORKDIR /app
COPY . .

Expand All @@ -142,7 +142,7 @@ ENTRYPOINT [ "/usr/local/bin/main" ]
For ultra-minimal images when using `CGO_ENABLED=0`:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
WORKDIR /app
COPY . .

Expand Down Expand Up @@ -174,7 +174,7 @@ ENTRYPOINT [ "/main" ]
For security-focused deployments using [Google's distroless][7] images:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
WORKDIR /app
COPY . .

Expand Down Expand Up @@ -205,7 +205,7 @@ ENTRYPOINT [ "/main" ]
For building applications targeting different architectures:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
# Install cross-compilation toolchain
RUN apt-get update && apt-get install -y gcc-aarch64-linux-gnu

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Puedes encontrar una lista de ejemplos de `Dockerfile` en el directorio [`exampl
Este es un ejemplo en su forma más simple:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
WORKDIR /app
COPY . .

Expand Down Expand Up @@ -70,7 +70,7 @@ Sin embargo, cuando CGO está deshabilitado, en general, Go produce un binario e
Este es el método recomendado para la mayoría de los usuarios, que utilizan imágenes basadas en Debian/Ubuntu:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
WORKDIR /app
COPY . .

Expand All @@ -95,7 +95,7 @@ ENTRYPOINT [ "/usr/local/bin/main" ]
Si necesitas CGO, pero quieres una imagen de tiempo de ejecución más ligera, compila con una imagen basada en Debian y ejecútala con Alpine:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
WORKDIR /app
COPY . .

Expand All @@ -120,7 +120,7 @@ ENTRYPOINT [ "/usr/local/bin/main" ]
Para minimizar el tamaño de la compilación y el tiempo de ejecución, utiliza compilaciones deshabilitadas para CGO (el valor predeterminado en Alpine):

```dockerfile
FROM golang:1-alpine AS build
FROM golang:1.25.7-alpine AS build
WORKDIR /app
COPY . .

Expand All @@ -142,7 +142,7 @@ ENTRYPOINT [ "/usr/local/bin/main" ]
Para imágenes ultra minimalistas cuando se utiliza `CGO_ENABLED=0`:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
WORKDIR /app
COPY . .

Expand Down Expand Up @@ -174,7 +174,7 @@ ENTRYPOINT [ "/main" ]
Para despliegues centrados en la seguridad mediante imágenes [sin distribución de Google][7]:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
WORKDIR /app
COPY . .

Expand Down Expand Up @@ -205,7 +205,7 @@ ENTRYPOINT [ "/main" ]
Para crear aplicaciones destinadas a diferentes arquitecturas:

```dockerfile
FROM golang:1 AS build
FROM golang:1.25.7 AS build
# Install cross-compilation toolchain
RUN apt-get update && apt-get install -y gcc-aarch64-linux-gnu

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module documentation

go 1.24.4
go 1.25.7

require github.com/DataDog/websites-modules v1.4.281 // indirect
require github.com/DataDog/cloudcraft-go v1.2.0

// replace github.com/DataDog/websites-modules => /Users/lisiane.turlure/guac/websites-modules
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/DataDog/websites-modules v1.4.281 h1:LGFyhdDKNJ98uMZfD0TWE4wx4jwBWagaQXHke9bf2WA=
github.com/DataDog/websites-modules v1.4.281/go.mod h1:0pAe0O1KehxRBoWbXv2H3tHgMpd1kZylyQhFADlLpd0=
github.com/DataDog/cloudcraft-go v1.2.0 h1:XjsyP1vbc2smnZgTJm9ujvdblva5TjdlFlp37pMTHAs=
github.com/DataDog/cloudcraft-go v1.2.0/go.mod h1:SdjEuRy9r4vvvkFxuDKedcyn2xkLOPsJWPt886nAnVs=
Loading