dota_patch_bot/Containerfile

15 lines
417 B
Plaintext
Raw Permalink Normal View History

2023-08-08 22:07:05 +00:00
FROM golang:1.20-alpine as builder
2022-08-11 01:19:34 +00:00
WORKDIR /go/src/app
COPY . .
2023-08-08 22:07:05 +00:00
#RUN apt update && apt upgrade -y
RUN CGO_ENABLED=0 go build
2022-08-11 01:19:34 +00:00
FROM alpine:latest as final
WORKDIR /srv/
RUN mkdir /srv/dota_patch_bot
2023-08-08 22:07:05 +00: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-11 01:19:34 +00:00
COPY --from=builder /go/src/app/dota_patch_bot /srv/dota_patch_bot/
CMD ["/srv/dota_patch_bot/dota_patch_bot"]