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
35 lines (27 loc) · 734 Bytes
/
Dockerfile
File metadata and controls
35 lines (27 loc) · 734 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
FROM python:3.12-alpine
# Add project source
WORKDIR /musicbot
COPY . ./
COPY ./config sample_config
# Install build dependencies
RUN apk update && apk add --no-cache --virtual .build-deps \
build-base \
libffi-dev \
libsodium-dev
# Install dependencies
RUN apk update && apk add --no-cache \
ca-certificates \
ffmpeg \
opus-dev \
libffi \
libsodium \
gcc \
git
# Install pip dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
# Clean up build dependencies
RUN apk del .build-deps
# Create volumes for audio cache, config, data and logs
VOLUME ["/musicbot/audio_cache", "/musicbot/config", "/musicbot/data", "/musicbot/logs"]
ENV APP_ENV=docker
ENTRYPOINT ["/bin/sh", "docker-entrypoint.sh"]