Activity-Relay/Dockerfile
2022-11-05 04:52:44 +09:00

15 lines
383 B
Docker

FROM golang:1.19-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