2022-03-11 17:10:01 +01:00
|
|
|
FROM golang:1.17-alpine3.15 AS builder
|
|
|
|
WORKDIR /app
|
2022-03-11 19:10:21 +01:00
|
|
|
RUN apk -U --no-cache add git
|
2022-03-11 17:10:01 +01:00
|
|
|
COPY . .
|
|
|
|
RUN go build
|
|
|
|
|
|
|
|
FROM alpine:3.15
|
2022-04-04 23:26:34 +02:00
|
|
|
LABEL LastUpdate="2022-04-04"
|
2022-03-11 17:10:01 +01:00
|
|
|
COPY --from=builder /app/telegram-group2mastodon /bin/telegram-group2mastodon
|
2022-03-11 19:10:21 +01:00
|
|
|
RUN apk -U --no-cache upgrade
|
2022-03-11 17:10:01 +01:00
|
|
|
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
|
|
|
USER appuser
|
|
|
|
ENTRYPOINT /bin/telegram-group2mastodon run
|