14 lines
334 B
Docker
14 lines
334 B
Docker
FROM golang:1.18 as builder
|
|
WORKDIR /go/src/app
|
|
COPY . .
|
|
RUN apt update && apt upgrade -y
|
|
RUN go build
|
|
|
|
FROM alpine:latest as final
|
|
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"]
|