simpbot/Containerfile

14 lines
279 B
Plaintext
Raw Normal View History

2023-05-14 18:45:55 -04:00
FROM golang:1.20 as builder
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
WORKDIR /srv/
RUN mkdir /srv/simpbot
2023-05-16 18:40:44 -04:00
RUN mkdir -p /lib64
COPY --from=builder /go/src/app/simpbot /srv/simpbot/
CMD ["/srv/simpbot/simpbot"]