Containerize the bot
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
30771e942a
commit
89a16115e2
|
@ -0,0 +1,21 @@
|
|||
FROM golang:1.17-alpine3.15 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk --no-cache add git
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go build
|
||||
|
||||
FROM alpine:3.15
|
||||
|
||||
COPY --from=builder /app/telegram-group2mastodon /bin/telegram-group2mastodon
|
||||
|
||||
RUN apk --no-cache add bash
|
||||
|
||||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
||||
|
||||
USER appuser
|
||||
|
||||
ENTRYPOINT /bin/telegram-group2mastodon run
|
Loading…
Reference in New Issue