mirror of
https://github.com/pischule/go-mention-all-bot.git
synced 2025-12-19 06:56:43 +00:00
Upgrade Dockerfile base images
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
FROM golang:1.18-alpine as builder
|
||||
FROM golang:alpine as builder
|
||||
|
||||
RUN apk add --no-cache gcc musl-dev
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ["go.mod", "go.sum", "./"]
|
||||
COPY go.mod ./
|
||||
COPY go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY *.go ./
|
||||
|
||||
RUN go build -a -o bot
|
||||
|
||||
FROM alpine:3.16
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=builder /app/bot /app/bot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user