2023-05-14 18:45:55 -04:00
|
|
|
FROM golang:1.20 as builder
|
2022-08-07 14:57:09 -04:00
|
|
|
WORKDIR /go/src/app
|
|
|
|
COPY . .
|
|
|
|
RUN apt update && apt upgrade -y
|
|
|
|
RUN go build
|
|
|
|
|
2023-05-14 18:45:55 -04:00
|
|
|
FROM debian:stable-slim as final
|
2022-08-07 14:57:09 -04:00
|
|
|
WORKDIR /srv/
|
|
|
|
RUN mkdir /srv/simpbot
|
|
|
|
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
|
|
|
|
COPY --from=builder /go/src/app/simpbot /srv/simpbot/
|
|
|
|
|
|
|
|
CMD ["/srv/simpbot/simpbot"]
|