commit
3243e784bc
|
@ -2,10 +2,10 @@ FROM golang:latest AS build
|
||||||
WORKDIR /go/src/buttsbot
|
WORKDIR /go/src/buttsbot
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go get -d -v ./...
|
RUN go get -d -v ./...
|
||||||
RUN go install -v ./...
|
RUN CGO_ENABLED=0 GOOS=linux go install -v ./...
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
run apk add --no-cache bash
|
run apk add --no-cache bash ca-certificates
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build /go/bin/buttsbot discord-buttsbot
|
COPY --from=build /go/bin/buttsbot discord-buttsbot
|
||||||
CMD ./discord-buttsbot
|
CMD ./discord-buttsbot
|
Loading…
Reference in New Issue