Merge pull request 'Changed things around. Should fix docker compilation' (#1) from daanselen/fibonacci:build into build
Some checks failed
Fibonacci unit tests / Containerize (push) Failing after 5s
Fibonacci unit tests / Run-unit-tests (push) Successful in 19s

Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2025-08-11 14:54:39 +00:00
2 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
module darjeeling.systemec.nl/rhouben/fibonacci
replace darjeeling.systemec.nl/rhouben/fibonacci/functions => ./functions
go 1.24.4

View File

@@ -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