@@ -8,7 +8,8 @@ ENV DEBIAN_FRONTEND=noninteractive
8
8
RUN apt-get update \
9
9
&& apt-get install -y --no-install-recommends \
10
10
curl \
11
- git
11
+ git \
12
+ && apt-get clean
12
13
13
14
ENV PYTHONDONTWRITEBYTECODE=1
14
15
ENV PYTHONUNBUFFERED=1
@@ -26,20 +27,21 @@ RUN poetry export --output requirements.txt --without-hashes --only main
26
27
# ###################################################################################################
27
28
FROM python:3.11-slim-bookworm
28
29
29
- RUN apt update \
30
- && apt install -y --no-install-recommends \
30
+ RUN apt-get update \
31
+ && apt-get install -y --no-install-recommends \
31
32
tini \
32
33
bash \
33
34
netcat-traditional \
34
35
libopus-dev \
35
36
libffi-dev \
36
37
libsodium-dev \
37
- git
38
+ git \
39
+ && apt-get clean
38
40
39
41
WORKDIR /rodhaj
40
42
COPY /bot /rodhaj/bot/
41
43
COPY /bot/cogs /rodhaj/bot/cogs/
42
- COPY /bot/migrations /rodhaj/bot/migrations/
44
+ # COPY /bot/migrations /rodhaj/bot/migrations/
43
45
COPY /docker/start.sh /rodhaj/start.sh
44
46
COPY /docker/wait-for /rodhaj/wait-for
45
47
@@ -52,7 +54,7 @@ RUN adduser --disabled-password --gecos "" rodhaj \
52
54
53
55
USER rodhaj
54
56
55
- ENV PATH="${PATH}:/home/rodhaj/ .local/bin"
57
+ ENV PATH="${PATH}:${HOME} .local/bin"
56
58
57
59
RUN pip install --user -r requirements.txt
58
60
@@ -65,4 +67,4 @@ STOPSIGNAL SIGTERM
65
67
LABEL org.opencontainers.image.title="Rodhaj"
66
68
LABEL org.opencontainers.image.description="A discord modmail bot"
67
69
LABEL org.opencontainers.image.licenses="Apache-2.0"
68
- LABEL org.opencontainers.image.source="https://github.com/transprogrammer/rodhaj"
70
+ LABEL org.opencontainers.image.source="https://github.com/transprogrammer/rodhaj"
0 commit comments