-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (27 loc) · 988 Bytes
/
Dockerfile
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
28
29
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:focal
LABEL maintainer="[email protected]"
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND noninteractive \
TZ=Europe/Warsaw
RUN apt-get update && \
apt install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get install -y wget mono-runtime libsqlite3-dev screen python3.6 python3.6-dev python3-pip python3.6-venv portaudio19-dev libcurl4-openssl-dev libssl-dev && \
mkdir /mfbot
RUN wget https://www.mfbot.de/Download/latest/MFBot_Konsole_x86_64 && \
chmod a+x MFBot_Konsole_x86_64 && \
ln -sf /MFBot_Konsole_x86_64 /mfbot/MFBot_Konsole_x86_64
WORKDIR /mfbot
COPY Acc.ini .
COPY ./Web/ ./Web/
COPY entrypoint.sh .
COPY en/ en/
RUN chmod a+x ./entrypoint.sh
WORKDIR /mfbot/Web
RUN python3.6 --version && \
python3.6 -m venv venv && \
source venv/bin/activate && \
pip install -r requirements.txt
# Needed for bot to find Acc.ini file
WORKDIR /mfbot/
ENTRYPOINT [ "/mfbot/entrypoint.sh" ]