rwadurian/backend/mpc-system/tests/Dockerfile.test

18 lines
289 B
Docker

# Test runner Dockerfile
FROM golang:1.21-alpine
WORKDIR /app
# Install build dependencies
RUN apk add --no-cache git gcc musl-dev
# Copy go mod files
COPY go.mod go.sum ./
RUN go mod download
# Copy source code
COPY . .
# Run tests
CMD ["go", "test", "-v", "./..."]