merge dockerfile

This commit is contained in:
Daniel afx 2022-03-23 03:26:09 +02:00
parent 0b8f9210d3
commit a31c1018c7
4 changed files with 20 additions and 29 deletions

View file

@ -1,9 +1,24 @@
FROM codecatt/reddit-radio:base
ENV CONFIG_FILE="./config/config.toml"
FROM node:16-alpine
WORKDIR /app
COPY ./package.json /app/package.json
RUN apk add --no-cache ffmpeg \
&& apk add --no-cache --virtual .build-deps \
g++ \
gcc \
libgcc \
make \
autoconf \
libtool \
automake \
python3 \
&& npm install \
&& apk del .build-deps
ENV CONFIG_FILE="./config/config.toml"
COPY . /app
CMD ["node", "index.js"]

View file

@ -1,18 +0,0 @@
FROM node:16-alpine
WORKDIR /app
COPY ./package.json /app/package.json
RUN apk add --no-cache ffmpeg \
&& apk add --no-cache --virtual .build-deps \
g++ \
gcc \
libgcc \
make \
autoconf \
libtool \
automake \
python3 \
&& npm install \
&& apk del .build-deps

View file

@ -352,7 +352,7 @@ class RedditRadio
onCmdGithub(msg)
{
msg.channel.send("My code is on Github! :robot: https://github.com/codecat/reddit-radio");
msg.channel.send("My code is on Github! :robot: https://github.com/deflax/radiobot");
}
/*

View file

@ -4,15 +4,9 @@ timezone = "Europe/Amsterdam"
logchannel = "647767937054277642"
dmchannel = "736529983706628146"
#[database]
#url = "mongodb://localhost:27017"
#db = "redditradio"
[filter]
badwords = "(thepiratebay|badwords)"
[[modules.qdance]]
#[[modules.event]]
#file = "events/Qlimax2019.json"
@ -23,7 +17,7 @@ badwords = "(thepiratebay|badwords)"
token = "radio_bot_1_token"
channel = "330121740758024193"
name = "Q-dance Radio"
url = "http://audio.true.nl/qdance-hard"
url = "http://example.net"
[voice]
passes = 2