From aa601454fd13dae37d3290f5b7524b876ed341eb Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Mon, 11 Aug 2025 16:35:16 +0200 Subject: [PATCH] Changed things around. Should fix docker compilation --- code/go.mod | 1 + docker/Dockerfile | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/go.mod b/code/go.mod index 4dbb5ae..34bd279 100644 --- a/code/go.mod +++ b/code/go.mod @@ -1,4 +1,5 @@ module darjeeling.systemec.nl/rhouben/fibonacci +replace darjeeling.systemec.nl/rhouben/fibonacci/functions => ./functions go 1.24.4 diff --git a/docker/Dockerfile b/docker/Dockerfile index c80a832..28069c9 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,15 +1,14 @@ -FROM golang:1.23-bookworm AS base +FROM golang:1.24-bookworm AS base # /build is the working directory WORKDIR /build # Copy control files and pull in dependencies -COPY code/go.mod . -RUN go mod download +COPY code/ ./ +RUN go mod tidy \ + && go mod download ENV port=8089 -# Copy the rest of the source code into the container -COPY code/* . # Build the app