parent
30771e942a
commit
89a16115e2
1 changed files with 21 additions and 0 deletions
@ -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