medication/Dockerfile

9 lines
270 B
Docker

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/index.html /app/
COPY --from=builder /app/medication /app/
ENTRYPOINT ["/app/medication"]