Skip to content

Commit 706f8e2

Browse files
committed
Fix dockerfile not building
1 parent 1100dcb commit 706f8e2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docker/Dockerfile

+9-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ENV DEBIAN_FRONTEND=noninteractive
88
RUN apt-get update \
99
&& apt-get install -y --no-install-recommends \
1010
curl \
11-
git
11+
git \
12+
&& apt-get clean
1213

1314
ENV PYTHONDONTWRITEBYTECODE=1
1415
ENV PYTHONUNBUFFERED=1
@@ -26,20 +27,21 @@ RUN poetry export --output requirements.txt --without-hashes --only main
2627
####################################################################################################
2728
FROM python:3.11-slim-bookworm
2829

29-
RUN apt update \
30-
&& apt install -y --no-install-recommends \
30+
RUN apt-get update \
31+
&& apt-get install -y --no-install-recommends \
3132
tini \
3233
bash \
3334
netcat-traditional \
3435
libopus-dev \
3536
libffi-dev \
3637
libsodium-dev \
37-
git
38+
git \
39+
&& apt-get clean
3840

3941
WORKDIR /rodhaj
4042
COPY /bot /rodhaj/bot/
4143
COPY /bot/cogs /rodhaj/bot/cogs/
42-
COPY /bot/migrations /rodhaj/bot/migrations/
44+
# COPY /bot/migrations /rodhaj/bot/migrations/
4345
COPY /docker/start.sh /rodhaj/start.sh
4446
COPY /docker/wait-for /rodhaj/wait-for
4547

@@ -52,7 +54,7 @@ RUN adduser --disabled-password --gecos "" rodhaj \
5254

5355
USER rodhaj
5456

55-
ENV PATH="${PATH}:/home/rodhaj/.local/bin"
57+
ENV PATH="${PATH}:${HOME}.local/bin"
5658

5759
RUN pip install --user -r requirements.txt
5860

@@ -65,4 +67,4 @@ STOPSIGNAL SIGTERM
6567
LABEL org.opencontainers.image.title="Rodhaj"
6668
LABEL org.opencontainers.image.description="A discord modmail bot"
6769
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

Comments
 (0)