feat: add docker configuration

This commit is contained in:
sam 2024-09-14 18:07:49 +02:00
parent 821712f43b
commit cf2f624ae4
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
21 changed files with 232 additions and 13 deletions

16
rate/Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM docker.io/golang:latest AS builder
WORKDIR /build
EXPOSE 5003
COPY . ./
RUN go mod download -x
ENV CGO_ENABLED 0
RUN go build -v -o rate
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=builder /build/rate rate
CMD ["/app/rate"]