forked from inevolin/DiscordEarsBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.sample
More file actions
27 lines (19 loc) · 767 Bytes
/
Dockerfile.sample
File metadata and controls
27 lines (19 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:latest
RUN mkdir /var/www/
RUN mkdir /var/www/DiscordEarsBot
WORKDIR /var/www/DiscordEarsBot
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y git vim g++ cmake
RUN apt-get -y install curl dirmngr apt-transport-https lsb-release ca-certificates
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get -y install nodejs
RUN git clone https://github.com/healzer/DiscordEarsBot.git .
RUN npm install
RUN npm update
RUN npm install pm2@latest -g
# provide API credentials through the settings.json file OR the environment variables:
# COPY settings.json /var/www/DiscordEarsBot/settings.json
# ENV DISCORD_TOK=
# ENV WITAPIKEY=
CMD git pull && npm update && pm2 start ecosystem.config.js