Initial working version

This commit is contained in:
2024-08-22 17:23:11 -03:00
commit 6e27b73960
6 changed files with 194 additions and 0 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM golang:alpine as builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" .
FROM scratch
WORKDIR /app
COPY --from=builder /app/medication /usr/bin/
ENTRYPOINT ["medication"]