Add Dockerfile for bot, rename old Dockerfile
parent
1f07fc01de
commit
90d57f1bc1
|
@ -0,0 +1,16 @@
|
|||
FROM golang:1.20 as builder
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN apt-get update && apt-get -y install libopus-dev libopusfile-dev && \
|
||||
go build
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
RUN apt-get update && apt-get -y install \
|
||||
ca-certificates \
|
||||
libopus-dev libopusfile-dev \
|
||||
mpd
|
||||
|
||||
COPY --from=builder /src/dndmusicbot /app/
|
||||
ADD tmpl /app/tmpl
|
||||
WORKDIR /app
|
||||
ENTRYPOINT [ "/app/dndmusicbot" ]
|
|
@ -0,0 +1,16 @@
|
|||
ambiance
|
||||
bin
|
||||
cache
|
||||
config
|
||||
cookies.txt
|
||||
dndmusicbot
|
||||
Dockerfile
|
||||
.git
|
||||
.gitignore
|
||||
.dockerignore
|
||||
.jsimage
|
||||
k8s
|
||||
MPD
|
||||
oauth.cfg
|
||||
test
|
||||
src
|
|
@ -6,4 +6,4 @@ RUN mkdir /public && chmod 777 /public
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
ENTRYPOINT ["yarn"]
|
||||
ENTRYPOINT ["yarn"]
|
|
@ -0,0 +1,2 @@
|
|||
ambiance
|
||||
*.mp3
|
Loading…
Reference in New Issue