main Dockerfile.test
Eric Bower  ·  2026-05-16
 1FROM golang:1.25.0-bookworm
 2
 3RUN apt-get update && apt-get install -y --no-install-recommends rsync openssh-client make gcc git docker.io && rm -rf /var/lib/apt/lists/*
 4
 5WORKDIR /app
 6
 7# Create directory for Docker socket mount
 8RUN mkdir -p /var/run
 9
10COPY go.mod go.sum /app
11
12RUN go mod download
13
14ENV PICO_SECRET="danger"
15# Disable Ryuk cleanup container — it has issues in socket-mount scenarios
16ENV TESTCONTAINERS_RYUK_DISABLED="true"
17
18COPY . /app
19
20CMD ["go", "test", "-race", "./..."]