Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
update docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Blackman committed Mar 5, 2016
1 parent 8b8cc48 commit b842fd1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@ ENV GOPATH /gopath
ENV GOBIN /gopath/bin
ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin

# Deps that rarely change
RUN apk add --update ffmpeg opus bash && \
rm -rf /usr/share/man /tmp/* /var/tmp/* /var/cache/apk/*

COPY . /gopath/src/github.com/dustinblackman/speakerbot

RUN apk add --update ffmpeg opus opus-dev bash git make pkgconfig build-base && \
RUN apk add --update opus-dev git make pkgconfig build-base && \
apk add go --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ --allow-untrusted && \
cd /gopath/src/github.com/dustinblackman/speakerbot && \
make && \
make build && \
mkdir /app && \
mv ./speakerbot /app/ && \
apk del go git make pkgconfig opus-dev build-base && \
apk del go opus-dev git make pkgconfig build-base && \
rm -rf /usr/share/man /tmp/* /var/tmp/* /var/cache/apk/* /gopath

WORKDIR /app
Expand Down
1 change: 0 additions & 1 deletion youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ func (y *youtube) findVideoID(videoID string) error {
}

y.videoID = videoID
fmt.Println(videoID)
if strings.ContainsAny(videoID, "?&/<%=") {
return errors.New("invalid characters in video id")
}
Expand Down

0 comments on commit b842fd1

Please sign in to comment.