-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (48 loc) · 1.24 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM python:3.10.11-alpine
LABEL maintainer="Winding"
# Add project source
WORKDIR /musicbot
COPY . ./
# Const_pkg
RUN apk update \
&& apk add --no-cache \
ca-certificates \
ffmpeg \
opus-dev \
python3 \
libsodium-dev \
bash \
git \
wget \
curl \
patch \
\
# Build-deps_pkg
&& apk add --no-cache --virtual .build-deps \
gcc \
g++ \
libc-dev \
libffi-dev \
make \
musl-dev \
python3-dev
#Scripts
WORKDIR /musicbot
#RUN git clone -b modified https://github.com/Winding6636/DiscoMusicBot.git /musicbot \
#&&git pull --tags
# pip依存関係をインストールする
RUN pip3 install --upgrade pip \
&& pip3 install --no-cache-dir -r requirements.txt
ADD config /musicbot/config
ADD .netrc /root/.netrc
RUN chmod og-rw /root/.netrc
# Patchs
#ADD ./env/ytdl_patch.sh /musicbot
#RUN sh ./env/ytdl_patch.sh
#RUN wget https://raw.githubusercontent.com/Winding6636/DiscoMusicBot/patch/ytdl.patch && patch -p1 < ytdl.patch
#Cleanup
RUN apk del .build-deps
# 構成をマッピングするためのボリュームを作成します
VOLUME ["/musicbot/audio_cache", "/musicbot/config", "/musicbot/data", "/musicbot/logs"]
ENV APP_ENV=docker
ENTRYPOINT ["/bin/sh", "docker-entrypoint.sh"]