forked from Paulomart/MusicBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (26 loc) · 818 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
FROM ubuntu:20.04
RUN apt-get update
RUN apt-get install software-properties-common -y
# Install dependencies
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update
RUN apt-get install python3.7 -y
# Install build tools
RUN apt-get install build-essential unzip -y
RUN apt-get install software-properties-common -y
# Install system dependencies
RUN apt-get update -y
RUN apt-get install git ffmpeg libopus-dev libffi-dev libsodium-dev python3-pip -y
RUN apt-get upgrade -y
# Add project source
WORKDIR /app
COPY requirements.txt .
# Install Python dependencies
RUN python3.7 -m pip install -U pip
RUN python3.7 -m pip install -U -r requirements.txt
COPY . ./
# Create volume for mapping the config
VOLUME /app/config
ENV APP_ENV=docker
CMD python3.7 dockerentry.py
ENTRYPOINT ["python3.7", "run.py"]