medication/Dockerfile

9 lines
270 B
Docker
Raw Permalink Normal View History

2024-08-22 17:23:11 -03:00
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
2024-08-22 21:05:33 -03:00
COPY --from=builder /app/index.html /app/
COPY --from=builder /app/medication /app/
ENTRYPOINT ["/app/medication"]