23 lines
381 B
Docker
23 lines
381 B
Docker
FROM golang:alpine as builder
|
|
|
|
RUN apk add --no-cache \
|
|
git
|
|
|
|
WORKDIR /app
|
|
|
|
ARG COMMIT=latest
|
|
|
|
RUN GOBIN=/app go install git.siteop.biz/shoopea/gottdad@$COMMIT
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache \
|
|
libstdc++
|
|
|
|
WORKDIR /app/
|
|
|
|
# Copy the Pre-built binary file from the previous stage
|
|
COPY --from=builder /app/gotdadd .
|
|
|
|
# Command to run the executable
|
|
CMD ["./gotdadd"] |