Initial commit

This commit is contained in:
2024-10-21 13:43:01 +01:00
commit 621314b7bc
5 changed files with 2528 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM golang:alpine AS builder
WORKDIR /app
COPY go.mod ./
COPY facts.txt ./
COPY main.go ./
RUN go build -o fastfact .
FROM alpine:latest
COPY --from=builder /app/fastfact /usr/local/bin/fastfact
EXPOSE 8080
CMD ["fastfact"]