forked from pelican-eggs/yolks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
59 lines (52 loc) · 2.04 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
54
55
56
57
58
59
FROM --platform=$TARGETOS/$TARGETARCH python:3.11-slim-bookworm
LABEL author="Silly Development" maintainer="[email protected]"
RUN mkdir -p /usr/share/man/man1
RUN apt update \
&& apt -y upgrade \
&& apt -y install \
git \
ca-certificates \
dnsutils \
iproute2 \
wget \
curl \
xz-utils \
openjdk-17-jre-headless \
zlib1g-dev \
libffi-dev \
libmagickwand-dev \
unzip \
libaa1-dev \
build-essential \
tk-dev \
libncurses5-dev \
libncursesw5-dev \
libreadline6-dev \
libdb5.3-dev \
libgdbm-dev \
libsqlite3-dev \
libssl-dev \
libbz2-dev \
libexpat1-dev \
liblzma-dev \
ffmpeg \
imagemagick \
tini
RUN pip install --upgrade pip
RUN pip install python-forecastio tweepy unidecode mcstatus bs4 sqlalchemy geocoder valve python-valve py-cpuinfo psutil
RUN mkdir -p /home/container/.config/Red-DiscordBot/
RUN ln -s /home/container/.config/Red-DiscordBot/ /usr/local/share/Red-DiscordBot
RUN rm -rf /usr/bin/dd \
&& rm -rf /usr/bin/fallocate \
&& rm -rf /usr/bin/truncate \
&& rm -rf /usr/bin/xfs_mkfile
## Setup user and working directory
RUN useradd -m -d /home/container -s /bin/bash container
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
STOPSIGNAL SIGINT
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"]