fix: added makefile, along with dynamic version, commit hash and buildtime

This commit is contained in:
2026-08-21 09:09:43 +02:00
parent a056906ab3
commit a8386b741b
5 changed files with 102 additions and 12 deletions
+4 -3
View File
@@ -7,15 +7,16 @@ RUN go mod download
COPY "./internal" "./internal"
COPY "./cmd" "./cmd"
COPY "Makefile" "./Makefile"
RUN go build -o ./server github.com/robindittmar/dttmr-api/cmd/api-server
RUN make build
FROM debian:latest
WORKDIR /app
COPY .env.docker .env
COPY --from=build /app/server /app/server
COPY --from=build /app/bin/dttmr-api /app/dttmr-api
EXPOSE 8080
CMD ["/app/server"]
CMD ["/app/dttmr-api"]