-
-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathDockerfile.sqlite-test
More file actions
44 lines (36 loc) · 1.36 KB
/
Dockerfile.sqlite-test
File metadata and controls
44 lines (36 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# syntax=docker/dockerfile:1.7
# Dockerfile for running SQLite tests with SpatiaLite extension
FROM golang:1.24rc1-bookworm
# Install SpatiaLite and required dependencies
RUN apt-get update && apt-get install -y \
libspatialite-dev \
libsqlite3-mod-spatialite \
gcc \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY go.work go.work.sum ./
COPY auth/go.mod auth/go.sum auth/
COPY cassandradriver/go.mod cassandradriver/go.sum cassandradriver/
COPY clickhousedriver/go.mod clickhousedriver/
COPY cmd/go.mod cmd/go.sum cmd/
COPY codesql/go.mod codesql/go.sum codesql/
COPY conf/go.mod conf/go.sum conf/
COPY core/go.mod core/go.sum core/
COPY hostedemu/go.mod hostedemu/go.sum hostedemu/
COPY mongodriver/go.mod mongodriver/go.sum mongodriver/
COPY plugin/otel/go.mod plugin/otel/go.sum plugin/otel/
COPY serv/go.mod serv/go.sum serv/
COPY tests/go.mod tests/go.sum tests/
# Remove wasm from go.work since it is not needed for integration tests.
RUN sed -i '/wasm/d' go.work
# Allow Go to auto-download required toolchain version
ENV GOTOOLCHAIN=auto
ENV CGO_ENABLED=1
# Download dependencies
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go work sync
# Copy the source after dependency warmup so normal code edits do not invalidate
# the expensive module-download layer.
COPY . .
RUN sed -i '/wasm/d' go.work