Merge branch 'dev' of pocketjawa/discord-buttsbot-go into master

master
pocketjawa 2019-07-30 01:41:01 +00:00 committed by Gogs
commit d007ddbcfa
2 changed files with 11 additions and 5 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
.git
.drone.yml
.gitignore
.dockerignore
Dockerfile

View File

@ -1,10 +1,11 @@
FROM golang:latest FROM golang:latest AS build
WORKDIR /go/src/buttsbot WORKDIR /go/src/buttsbot
COPY . . COPY . .
RUN rm -rf .git .drone.yml .gitignore
RUN go get -d -v ./... RUN go get -d -v ./...
RUN go install -v ./... RUN go install -v ./...
CMD ["buttsbot"] FROM alpine:latest
run apk add --no-cache bash
WORKDIR /app
COPY --from=build /go/bin/buttsbot discord-buttsbot
CMD ./discord-buttsbot