mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-09 16:42:48 +00:00
feat: add user admin page - various dependency updates
This commit is contained in:
23
Dockerfile
23
Dockerfile
@@ -1,20 +1,17 @@
|
||||
FROM node:12.18-alpine3.12
|
||||
FROM node:16.14-alpine
|
||||
|
||||
WORKDIR /home/client
|
||||
ADD ./client/ /home/client/
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
FROM golang:1.14.4-alpine3.12
|
||||
FROM golang:1.17-alpine
|
||||
|
||||
WORKDIR /go/src/github.com/mgerb/go-discord-bot/server
|
||||
WORKDIR /home
|
||||
COPY --from=0 /home/dist /go/src/github.com/mgerb/go-discord-bot/dist
|
||||
ADD ./server .
|
||||
RUN apk add --no-cache git alpine-sdk pkgconfig opus-dev opusfile-dev
|
||||
RUN go get -u github.com/gobuffalo/packr/...
|
||||
RUN go get -u github.com/golang/dep/cmd/dep
|
||||
RUN dep ensure
|
||||
RUN packr build -o /build/bot
|
||||
RUN go build -o /build/bot
|
||||
RUN go build -o /build/bot-scripts ./scripts
|
||||
|
||||
|
||||
@@ -22,13 +19,9 @@ FROM jrottenberg/ffmpeg:4.1-alpine
|
||||
|
||||
RUN apk update
|
||||
RUN apk add ca-certificates opus-dev opusfile-dev
|
||||
|
||||
# install python for youtube-dl
|
||||
RUN apk add python3
|
||||
RUN ln -s /usr/bin/python3 /usr/bin/python & \
|
||||
ln -s /usr/bin/pip3 /usr/bin/pip
|
||||
|
||||
WORKDIR /bot
|
||||
COPY --from=1 /build /server
|
||||
WORKDIR /server
|
||||
COPY --from=0 /home/dist /server/dist
|
||||
COPY --from=1 /build/bot /server/bot
|
||||
COPY --from=1 /build/bot-scripts /server/bot-scripts
|
||||
|
||||
ENTRYPOINT ["/server/bot"]
|
||||
|
||||
Reference in New Issue
Block a user