19 lines
610 B
Docker
19 lines
610 B
Docker
FROM golang:1.22-alpine AS builder
|
|
WORKDIR /app
|
|
COPY ./ ./
|
|
RUN set -eux; \
|
|
apk add --no-cache bash make git dumb-init mailcap ca-certificates tzdata; \
|
|
update-ca-certificates; \
|
|
make
|
|
|
|
FROM scratch
|
|
WORKDIR /
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
COPY --from=builder /etc/mime.types /etc/mime.types
|
|
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
|
|
COPY --from=builder /usr/bin/dumb-init /bin/dumb-init
|
|
COPY --from=builder /app/build/vegapokerbot /vegapokerbot
|
|
EXPOSE 3333
|
|
ENTRYPOINT ["/bin/dumb-init", "--"]
|
|
CMD ["/vegapokerbot", "run"]
|