FROM golang:1.23.1

WORKDIR /app

COPY go.mod go.sum ./

COPY clublog.go config.go config.yml database.go flexradio.go HTTPServer.go spot.go main.go TCPClient.go TCPServer.go utils.go log.go ./
COPY templates/* .

RUN go build -o bin main.go

ENTRYPOINT ["/app/bin"]