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
|
2023-05-16 18:47:45 -04:00
|
|
|
RUN CGO_ENABLED=0 go build
|
2022-08-07 14:57:09 -04:00
|
|
|
|
2023-05-16 18:47:45 -04:00
|
|
|
FROM alpine:latest as final
|
2022-08-07 14:57:09 -04:00
|
|
|
WORKDIR /srv/
|
|
|
|
RUN mkdir /srv/simpbot
|
2023-05-16 18:40:44 -04:00
|
|
|
RUN mkdir -p /lib64
|
2022-08-07 14:57:09 -04:00
|
|
|
COPY --from=builder /go/src/app/simpbot /srv/simpbot/
|
|
|
|
|
|
|
|
CMD ["/srv/simpbot/simpbot"]
|