Activity-Relay/Dockerfile
2021-06-19 11:08:19 +09:00

15 lines
378 B
Docker

FROM golang:alpine AS build
WORKDIR /Activity-Relay
COPY . /Activity-Relay
RUN mkdir -p /rootfs/usr/bin && \
apk add -U --no-cache git && \
go build -o /rootfs/usr/bin/relay -ldflags "-X main.version=$(git describe --tags HEAD)" .
FROM alpine
COPY --from=build /rootfs/usr/bin /usr/bin
RUN chmod +x /usr/bin/relay && \
apk add -U --no-cache ca-certificates