Files
hello_gitea/Dockerfile.builder
Anton Kuznetcov d5c7efd117
Some checks failed
Conditional Release Build / read-conditions (push) Successful in 8s
Conditional Release Build / create-docker-image (push) Has been cancelled
Conditional Release Build / update-to-release-branch (push) Has been cancelled
Conditional Release Build / create-release (push) Has been cancelled
Release v1.0.50
2025-07-28 18:30:51 +06:00

26 lines
865 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Используем образ Go с поддержкой мультиплатформенности
FROM golang:1.24
# Устанавливаем пакеты (одинаково работают на amd64/arm64)
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
ca-certificates \
jq && \
rm -rf /var/lib/apt/lists/*
# Создаем рабочую директорию
WORKDIR /app
# Копируем файлы зависимостей
COPY go.mod go.sum ./
# Предварительно загружаем все зависимости
RUN go mod download && go mod verify
# Устанавливаем переменные окружения
ENV GOPATH=/go
ENV PATH=$PATH:/go/bin:/usr/local/bin
# (Опционально) Можно добавить команду по умолчанию
CMD ["bash"]