2023-08-08 18:07:05 -04:00
|
|
|
FROM golang:1.20-alpine as builder
|
2022-08-10 21:19:34 -04:00
|
|
|
WORKDIR /go/src/app
|
|
|
|
COPY . .
|
2023-08-08 18:07:05 -04:00
|
|
|
#RUN apt update && apt upgrade -y
|
|
|
|
RUN CGO_ENABLED=0 go build
|
2022-08-10 21:19:34 -04:00
|
|
|
|
|
|
|
FROM alpine:latest as final
|
|
|
|
WORKDIR /srv/
|
|
|
|
RUN mkdir /srv/dota_patch_bot
|
2023-08-08 18:07:05 -04:00
|
|
|
RUN apk add libc6-compat
|
|
|
|
#RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
|
2022-08-10 21:19:34 -04:00
|
|
|
COPY --from=builder /go/src/app/dota_patch_bot /srv/dota_patch_bot/
|
|
|
|
|
|
|
|
CMD ["/srv/dota_patch_bot/dota_patch_bot"]
|