add the files
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
FROM ubuntu
|
||||
|
||||
RUN apt update && apt -y install software-properties-common
|
||||
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||
RUN apt -y install python3.11 python3.11-dev python3.11-venv git openjdk-17-jre-headless build-essential nano
|
||||
|
||||
RUN python3.11 -m venv /redenv
|
||||
RUN bash -c "source /redenv/bin/activate && python -m pip install -U pip wheel && python -m pip install -U Red-DiscordBot"
|
||||
|
||||
RUN printf 'source /redenv/bin/activate \n redbot-setup --no-prompt --instance-name $REDBOT --data-path /data/reddata --backend json \n exec redbot $REDBOT \n' >> /init.sh
|
||||
RUN chmod +x /init.sh
|
||||
|
||||
ENTRYPOINT [ "bash", "/init.sh" ]
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
services:
|
||||
redbot:
|
||||
image: redbot:69
|
||||
container_name: redbot
|
||||
environment:
|
||||
REDBOT: crackboard
|
||||
volumes:
|
||||
- redbot_data:/data
|
||||
|
||||
volumes:
|
||||
redbot_data:
|
||||
external: true
|
||||
name: redbot_data
|
||||
Reference in New Issue
Block a user