gottdad/Dockerfile

23 lines
381 B
Docker
Raw Normal View History

2021-11-06 17:13:45 +01:00
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
2021-11-06 17:17:20 +01:00
COPY --from=builder /app/gottdad .
2021-11-06 17:13:45 +01:00
# Command to run the executable
CMD ["./gotdadd"]