Move everything back from the Docker folder
This commit is contained in:
@ -1,19 +0,0 @@
|
||||
FROM archlinux
|
||||
|
||||
# Update Arch and install gcc, python and pip and remove cache
|
||||
RUN pacman -Syu --noconfirm && pacman --noconfirm -S gcc python python-pip git && yes | pacman -Scc
|
||||
|
||||
# Copy requirements for the bot and install them
|
||||
COPY requirements.txt /tmp/
|
||||
RUN pip install --disable-pip-version-check --no-cache-dir --requirement /tmp/requirements.txt
|
||||
|
||||
# Create user
|
||||
RUN useradd --create-home botuser
|
||||
WORKDIR /home/botuser
|
||||
USER botuser
|
||||
|
||||
RUN mkdir -p ~/data
|
||||
|
||||
# Copy bot and run
|
||||
COPY main.py .
|
||||
CMD ["python", "./main.py"]
|
@ -1,17 +0,0 @@
|
||||
version: "3"
|
||||
services:
|
||||
discord-reminder-bot:
|
||||
image: thelovinator/discord-reminder-bot
|
||||
env_file:
|
||||
- .env
|
||||
container_name: discord-reminder-bot
|
||||
environment:
|
||||
- BOT_TOKEN=${BOT_TOKEN}
|
||||
- TIMEZONE=${TIMEZONE}
|
||||
- LOG_LEVEL=${LOG_LEVEL}
|
||||
- SQLITE_LOCATION=/data/jobs.sqlite
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- data_folder:/home/botuser/data/
|
||||
volumes:
|
||||
data_folder:
|
Reference in New Issue
Block a user