From f22a65d5a6835a3db8f4514eea134017db55837c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 12:49:58 +0300 Subject: [PATCH] Update docker images (#11) Co-authored-by: Fedor Batonogov --- docker/Dockerfile | 4 ++-- docker/README.md | 12 ++++++------ docker/docker-compose.yaml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 41579e1..df95936 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ # Используем официальный образ Golang -FROM docker.io/library/golang:1.22.2-alpine AS builder +FROM golang:1.22.4-alpine AS builder # Устанавливаем рабочую директорию WORKDIR /build # Копируем исходный код приложения в контейнер @@ -7,7 +7,7 @@ COPY ./ ./ RUN CGO_ENABLED=0 go build main.go # Отдельный этап сборки для уменьшения размера образа -FROM docker.io/library/alpine:3.19.1 AS runner +FROM alpine:3.20.0 AS runner # Устанавливаем рабочую директорию WORKDIR /app # Копируем скомпилированное приложение из предыдущего этапа diff --git a/docker/README.md b/docker/README.md index 2d6db4f..a0ec68e 100644 --- a/docker/README.md +++ b/docker/README.md @@ -70,13 +70,13 @@ bash ./deploy.sh ```output Список контейнеров -NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS -docker-nginx-proxy-1 nginxproxy/nginx-proxy:1.5.1-alpine "/app/docker-entrypo…" nginx-proxy 12 seconds ago Up 5 seconds (healthy) 0.0.0.0:80->80/tcp -docker-web-blue-1 docker-web-blue "./main" web-blue 12 seconds ago Up 11 seconds (healthy) 8080/tcp -docker-web-blue-2 docker-web-blue "./main" web-blue 12 seconds ago Up 11 seconds (healthy) 8080/tcp -docker-web-blue-3 docker-web-blue "./main" web-blue 12 seconds ago Up 11 seconds (healthy) 8080/tcp +NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS +docker-nginx-proxy-1 nginxproxy/nginx-proxy:1.5.2-alpine "/app/docker-entrypo…" nginx-proxy 2 minutes ago Up 2 minutes (healthy) 0.0.0.0:80->80/tcp +docker-web-blue-1 docker-web-blue "./main" web-blue 7 seconds ago Up 6 seconds (healthy) 8080/tcp +docker-web-blue-2 docker-web-blue "./main" web-blue 7 seconds ago Up 6 seconds (healthy) 8080/tcp +docker-web-blue-3 docker-web-blue "./main" web-blue 7 seconds ago Up 6 seconds (healthy) 8080/tcp Журналы запуска web-blue -web-blue-2 | Сервер запущен на порту 8080... web-blue-1 | Сервер запущен на порту 8080... web-blue-3 | Сервер запущен на порту 8080... +web-blue-2 | Сервер запущен на порту 8080... ``` diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 1b2256c..662ef44 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -25,7 +25,7 @@ services: # NGINX-прокси nginx-proxy: - image: nginxproxy/nginx-proxy:1.5.1-alpine + image: nginxproxy/nginx-proxy:1.5.2-alpine expose: - 80 ports: