1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2025-09-09 21:02:46 +02:00
seaweedfs/test/foundationdb/Dockerfile.test
2025-08-28 18:51:45 -07:00

33 lines
835 B
Text

# Test environment with Go and FoundationDB support
FROM golang:1.24-bookworm
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
wget \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Download and install FoundationDB client libraries
RUN wget -q https://github.com/apple/foundationdb/releases/download/7.1.61/foundationdb-clients_7.1.61-1_amd64.deb \
&& dpkg -i foundationdb-clients_7.1.61-1_amd64.deb || apt-get install -f -y \
&& rm foundationdb-clients_7.1.61-1_amd64.deb
# Set up Go environment for CGO
ENV CGO_ENABLED=1
ENV GOOS=linux
# Set work directory
WORKDIR /app
# Copy source code
COPY . .
# Create directories
RUN mkdir -p /test/results
# Pre-download dependencies
RUN go mod download
# Default command (will be overridden)
CMD ["go", "version"]