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
37 lines (32 loc) · 701 Bytes
/
Dockerfile
File metadata and controls
37 lines (32 loc) · 701 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
FROM alpine:edge
# Add project source
WORKDIR /usr/src/musicbot
COPY . ./
# 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 \
\
# Install pip dependencies
&& pip3 install --no-cache-dir -r requirements.txt \
&& pip3 install --upgrade --force-reinstall --version websockets==4.0.1 \
\
# Clean up build dependencies
&& apk del .build-deps
# Create volume for mapping the config
VOLUME /usr/src/musicbot/config
ENV APP_ENV=docker
ENTRYPOINT ["python3", "dockerentry.py"]