Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Feb 27, 2024
1 parent 95d42e3 commit b37c48b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from docker.io/manjarolinux/base
run pacman --noconfirm -Syu git python python-pip
RUN mkdir /bot
RUN mkdir /bot/source
RUN mkdir /data
COPY source/* /bot/source/
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN python3 -m venv --system-site-packages /opt/venv
RUN pip3 install -r /bot/source/requirements.txt
WORKDIR /data/
CMD ["python3","/bot/source/bot.py"]

0 comments on commit b37c48b

Please sign in to comment.