forked from Just-Some-Bots/MusicBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (34 loc) · 750 Bytes
/
Dockerfile
File metadata and controls
42 lines (34 loc) · 750 Bytes
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
40
41
42
FROM alpine:3.11
# Install dependencies
RUN apk update \
&& apk add --no-cache \
ca-certificates \
ffmpeg \
opus \
python3 \
libsodium-dev \
\
# Install build dependencies
&& apk add --no-cache --virtual .build-deps \
gcc \
git \
libffi-dev \
make \
musl-dev \
python3-dev
# Set working directory
WORKDIR /usr/src/musicbot
# Add project requirements
COPY ./requirements.txt ./requirements.txt
# Install pip dependencies
RUN pip3 install --upgrade pip \
&& pip3 install --no-cache-dir -r requirements.txt \
\
# Clean up build dependencies
&& apk del .build-deps
# Add project sources
COPY . ./
# Create volume for mapping the config
VOLUME /usr/src/musicbot/config
ENV APP_ENV=docker
CMD ["python3", "dockerentry.py"]