@@ -1,6 +1,6 @@
|
|||||||
FROM dock.mau.dev/tulir/lottieconverter:alpine-3.18 AS lottie
|
FROM dock.mau.dev/tulir/lottieconverter:alpine-3.22 AS lottie
|
||||||
|
|
||||||
FROM golang:1-alpine3.18 AS builder
|
FROM golang:1-alpine3.22 AS builder
|
||||||
|
|
||||||
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev
|
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev
|
||||||
|
|
||||||
@@ -8,7 +8,7 @@ COPY . /build
|
|||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN go build -o /usr/bin/mautrix-discord
|
RUN go build -o /usr/bin/mautrix-discord
|
||||||
|
|
||||||
FROM alpine:3.18
|
FROM alpine:3.22
|
||||||
|
|
||||||
ENV UID=1337 \
|
ENV UID=1337 \
|
||||||
GID=1337
|
GID=1337
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM dock.mau.dev/tulir/lottieconverter:alpine-3.18 AS lottie
|
FROM dock.mau.dev/tulir/lottieconverter:alpine-3.22 AS lottie
|
||||||
|
|
||||||
FROM alpine:3.18
|
FROM alpine:3.22
|
||||||
|
|
||||||
ENV UID=1337 \
|
ENV UID=1337 \
|
||||||
GID=1337
|
GID=1337
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
FROM dock.mau.dev/tulir/lottieconverter:alpine-3.18 AS lottie
|
|
||||||
|
|
||||||
FROM golang:1-alpine3.18 AS builder
|
|
||||||
|
|
||||||
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev bash jq yq curl \
|
|
||||||
zlib libpng giflib libstdc++ libgcc
|
|
||||||
|
|
||||||
COPY --from=lottie /usr/lib/librlottie.so* /usr/lib/
|
|
||||||
COPY --from=lottie /usr/local/bin/lottieconverter /usr/local/bin/lottieconverter
|
|
||||||
COPY . /build
|
|
||||||
WORKDIR /build
|
|
||||||
RUN go build -o /usr/bin/mautrix-discord
|
|
||||||
|
|
||||||
# Setup development stack using gow
|
|
||||||
RUN go install github.com/mitranim/gow@latest
|
|
||||||
RUN echo 'gow run /build $@' > /usr/bin/mautrix-discord \
|
|
||||||
&& chmod +x /usr/bin/mautrix-discord
|
|
||||||
VOLUME /data
|
|
||||||
Reference in New Issue
Block a user