peridot/vendor/alexejk.io/go-xmlrpc/Dockerfile

21 lines
407 B
Text
Raw Normal View History

2022-07-07 20:11:50 +00:00
FROM golang:1.13-alpine
# Build dependencies
RUN apk --no-cache update
RUN apk --no-cache add alpine-sdk
WORKDIR /src
# Copy over dependency file and download it if files changed
# This allows build caching and faster re-builds
COPY go.mod .
COPY go.sum .
RUN go mod download
# Add rest of the source and build
COPY . .
RUN make all
# Copy to /opt/ so we can extract files later
RUN cp build/* /opt/