-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
50 lines (39 loc) · 1.71 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Start from a Debian image with the latest version of Go installed
# and a workspace (GOPATH) configured at /go.
FROM golang
# Copy the local package files to the container's workspace.
ADD . /go/src/github.com/yamamushi/du-discordbot
# Create our shared volume
RUN mkdir /du-bot
# Run our dependency installation for Opus Encoding/Decoding
#RUN apt-get update && \
# DEBIAN_FRONTEND=noninteractive apt-get install -y libav-tools opus-tools -f && \
# apt-get clean && \
# rm -rf /var/lib/apt/lists/
# Get the du-discordbot dependencies inside the container.
RUN go get github.com/anaskhan96/soup
RUN cd /go/src/github.com/anaskhan96/soup && git checkout ad448eafe
RUN go get github.com/bwmarrin/discordgo
RUN go get github.com/BurntSushi/toml
RUN go get github.com/coreos/bbolt
#RUN cd /go/src/github.com/coreos/bbolt && git checkout master
RUN go get -u github.com/asdine/storm
RUN go get gopkg.in/oleiade/lane.v1
RUN go get github.com/gofrs/uuid
RUN go get github.com/lunixbochs/vtclean
RUN go get github.com/yuin/gopher-lua
RUN go get github.com/wcharczuk/go-chart
RUN go get github.com/grokify/html-strip-tags-go
RUN go get gopkg.in/mgo.v2
RUN go get github.com/jonas747/ogg
#RUN go get -u github.com/rylio/ytdl/...
# This is a fork of gofeed that allows for custom user-agent strings in requests to work with sites that filter these
RUN go get github.com/yamamushi/gofeed
# This is a fork of https://github.com/JacobRoberts/chess, to try and resolve issues with castling
RUN go get github.com/yamamushi/chess
# Install and run du-discordbot
RUN go install github.com/yamamushi/du-discordbot
# Run the outyet command by default when the container starts.
WORKDIR /du-bot
ENTRYPOINT /go/bin/du-discordbot
VOLUME /du-bot