Changed things around. Should fix docker compilation #1
@@ -1,4 +1,5 @@
|
|||||||
module darjeeling.systemec.nl/rhouben/fibonacci
|
module darjeeling.systemec.nl/rhouben/fibonacci
|
||||||
|
replace darjeeling.systemec.nl/rhouben/fibonacci/functions => ./functions
|
||||||
|
|
||||||
go 1.24.4
|
go 1.24.4
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
FROM golang:1.23-bookworm AS base
|
FROM golang:1.24-bookworm AS base
|
||||||
|
|
||||||
# /build is the working directory
|
# /build is the working directory
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
# Copy control files and pull in dependencies
|
# Copy control files and pull in dependencies
|
||||||
COPY code/go.mod .
|
COPY code/ ./
|
||||||
RUN go mod download
|
RUN go mod tidy \
|
||||||
|
&& go mod download
|
||||||
|
|
||||||
ENV port=8089
|
ENV port=8089
|
||||||
# Copy the rest of the source code into the container
|
|
||||||
COPY code/* .
|
|
||||||
|
|
||||||
# Build the app
|
# Build the app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user