2022-10-21 16:10:48 -05:00
|
|
|
FROM golang:1.19-alpine3.16 AS builder
|
2020-10-19 14:46:59 +03:00
|
|
|
|
2020-10-19 01:45:53 +03:00
|
|
|
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev
|
2018-08-26 17:29:51 +03:00
|
|
|
|
2019-01-12 15:54:04 +02:00
|
|
|
COPY . /build
|
2020-06-07 21:20:57 +03:00
|
|
|
WORKDIR /build
|
2021-09-16 14:44:40 -04:00
|
|
|
RUN go build -o /usr/bin/go-groupme
|
2018-08-24 23:06:55 +03:00
|
|
|
|
2022-10-21 16:10:48 -05:00
|
|
|
FROM alpine:3.16
|
2020-08-14 15:10:44 -06:00
|
|
|
|
2018-10-24 15:46:15 +02:00
|
|
|
ENV UID=1337 \
|
|
|
|
GID=1337
|
|
|
|
|
2021-09-16 14:44:40 -04:00
|
|
|
RUN apk add --no-cache ffmpeg su-exec ca-certificates olm bash jq yq curl
|
2018-10-24 15:46:15 +02:00
|
|
|
|
2021-09-16 14:44:40 -04:00
|
|
|
COPY --from=builder /usr/bin/go-groupme /usr/bin/go-groupme
|
|
|
|
COPY --from=builder /build/example-config.yaml /opt/go-groupme/example-config.yaml
|
2019-02-10 12:17:35 +01:00
|
|
|
COPY --from=builder /build/docker-run.sh /docker-run.sh
|
2018-08-24 23:06:55 +03:00
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
CMD ["/docker-run.sh"]
|