Evgenii Stratonikov
ed13387c0e
All checks were successful
Tests and linters / Run gofumpt (pull_request) Successful in 2m42s
DCO action / DCO (pull_request) Successful in 2m54s
Tests and linters / Tests (pull_request) Successful in 4m10s
Build / Build Components (pull_request) Successful in 4m46s
Pre-commit hooks / Pre-commit (pull_request) Successful in 4m45s
Vulncheck / Vulncheck (pull_request) Successful in 4m45s
Tests and linters / gopls check (pull_request) Successful in 4m48s
Tests and linters / Lint (pull_request) Successful in 5m7s
Tests and linters / Staticcheck (pull_request) Successful in 5m42s
Tests and linters / Tests with -race (pull_request) Successful in 7m55s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
25 lines
609 B
Text
25 lines
609 B
Text
FROM golang:1.23
|
|
|
|
WORKDIR /tmp
|
|
|
|
# Install apt packages
|
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
|
pip \
|
|
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Dash → Bash
|
|
RUN echo "dash dash/sh boolean false" | debconf-set-selections
|
|
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
|
|
|
|
RUN useradd -u 1234 -d /home/ci -m ci
|
|
USER ci
|
|
|
|
ENV PATH="$PATH:/home/ci/.local/bin"
|
|
|
|
COPY .pre-commit-config.yaml .
|
|
|
|
RUN pip install "pre-commit==3.1.1" \
|
|
&& git init . \
|
|
&& pre-commit install-hooks \
|
|
&& rm -rf /tmp/*
|