1
0
Fork 0

Containerize the bot
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Daniele Tricoli 2022-03-11 17:10:01 +01:00
parent 30771e942a
commit 89a16115e2
1 changed files with 21 additions and 0 deletions

21
Dockerfile Normal file
View File

@ -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