Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (28 sloc) 1.14 KB
FROM golang:stretch as builder
# Uncomment during development
# COPY .
RUN CGO_ENABLED=0 GOOS=linux go get -v \
FROM alpine:latest
VOLUME /app/soundboard \
EXPOSE 80 443
# We need the X.509 certificates for client TLS to work.
RUN apk --no-cache add ca-certificates
# Add ffmpeg for soundboard support
RUN apk --no-cache add ffmpeg
# Handle templates for plugins automatically
COPY --from=builder /go/src/*/assets/*.html templates/plugins/
COPY --from=builder /go/src/ templates/
COPY --from=builder /go/src/ posts/
COPY --from=builder /go/src/ static/
COPY --from=builder /go/bin/yagpdb .
# add extra flags here when running YAGPDB
# Set "-exthttps=true" if using a TLS-enabled proxy such as
# jrcs/letsencrypt-nginx-proxy-companion
# Set "-https=false" do disable https
ENV extra_flags ""
# `exec` allows us to receive shutdown signals.
CMD exec /app/yagpdb -all -pa $extra_flags
You can’t perform that action at this time.