We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3578003 commit f4b0b77Copy full SHA for f4b0b77
1 file changed
Dockerfile
@@ -41,12 +41,16 @@ COPY go.mod go.sum ./
41
# Install library dependencies
42
RUN go mod download
43
44
+ARG TARGETARCH
45
+
46
# Copy the entire project and build it
47
# This layer is rebuilt when a file changes in the project directory
48
COPY . .
-RUN make
49
+RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH make
50
51
+FROM debian:bookworm-slim AS final
52
-FROM debian:bookworm AS final
53
+RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
54
55
# Create env folder
56
RUN mkdir /reactivesearch-data && touch /reactivesearch-data/.env && chmod 777 /reactivesearch-data/.env
0 commit comments