14 lines
288 B
Docker
14 lines
288 B
Docker
FROM golang:1.20 as builder
|
|
WORKDIR /go/src/app
|
|
COPY . .
|
|
RUN apt update && apt upgrade -y
|
|
RUN CGO_ENABLED=0 go build
|
|
|
|
FROM alpine:latest as final
|
|
WORKDIR /srv/
|
|
RUN mkdir /srv/simpbot
|
|
RUN mkdir -p /lib64
|
|
COPY --from=builder /go/src/app/simpbot /srv/simpbot/
|
|
|
|
CMD ["/srv/simpbot/simpbot"]
|