1
0
Fork 0
telegram-group2mastodon/Dockerfile
Daniele Tricoli 56540639e0
All checks were successful
continuous-integration/drone/push Build is passing
Remove bash from the final container
2022-03-11 18:53:52 +01:00

20 lines
321 B
Docker

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 addgroup -S appgroup && adduser -S appuser -G appgroup
USER appuser
ENTRYPOINT /bin/telegram-group2mastodon run