-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
36 lines (29 loc) · 1.13 KB
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
FROM python:3.13-slim AS compile
LABEL maintainer="https://github.com/buzzbyte"
ARG BUILD_DATE
ARG VCS_REF
ARG BUILD_VERSION
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.build-date=$BUILD_DATE
LABEL org.label-schema.name="dyphan/dyphanbot"
LABEL org.label-schema.description="An expandable Discord bot! Written in Python using Pycord. Still in early stages."
LABEL org.label-schema.url="https://dyphanbot.github.io/"
LABEL org.label-schema.vcs-url="https://github.com/buzzbyte/DyphanBot"
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.version=$BUILD_VERSION
LABEL org.label-schema.docker.cmd="docker run -v ~/dyphan:/dyphan/.dyphan -d dyphan/dyphanbot"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -yqq --no-install-recommends \
git ffmpeg\
&& rm -rf /var/lib/apt/lists/*
ENV HOME=/dyphan
WORKDIR $HOME
# For setuptools-scm to work
COPY . .
RUN git config --global --add safe.directory /dyphan
# install dyphanbot and its dependencies
RUN pip3 install --upgrade pip && \
pip3 install setuptools && \
pip3 install .
# initialize and run dyphanbot
ENTRYPOINT [ "./docker-entry.sh" ]