From 706f8e26d0f7ebb5c3a8fb66d56f2c4cbb6ec837 Mon Sep 17 00:00:00 2001 From: No767 <73260931+No767@users.noreply.github.com> Date: Fri, 10 Nov 2023 21:37:42 -0800 Subject: [PATCH] Fix dockerfile not building --- docker/Dockerfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 244adf7..ebbc9e4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -8,7 +8,8 @@ ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get install -y --no-install-recommends \ curl \ - git + git \ + && apt-get clean ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 @@ -26,20 +27,21 @@ RUN poetry export --output requirements.txt --without-hashes --only main #################################################################################################### FROM python:3.11-slim-bookworm -RUN apt update \ - && apt install -y --no-install-recommends \ +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ tini \ bash \ netcat-traditional \ libopus-dev \ libffi-dev \ libsodium-dev \ - git + git \ + && apt-get clean WORKDIR /rodhaj COPY /bot /rodhaj/bot/ COPY /bot/cogs /rodhaj/bot/cogs/ -COPY /bot/migrations /rodhaj/bot/migrations/ +# COPY /bot/migrations /rodhaj/bot/migrations/ COPY /docker/start.sh /rodhaj/start.sh COPY /docker/wait-for /rodhaj/wait-for @@ -52,7 +54,7 @@ RUN adduser --disabled-password --gecos "" rodhaj \ USER rodhaj -ENV PATH="${PATH}:/home/rodhaj/.local/bin" +ENV PATH="${PATH}:${HOME}.local/bin" RUN pip install --user -r requirements.txt @@ -65,4 +67,4 @@ STOPSIGNAL SIGTERM LABEL org.opencontainers.image.title="Rodhaj" LABEL org.opencontainers.image.description="A discord modmail bot" LABEL org.opencontainers.image.licenses="Apache-2.0" -LABEL org.opencontainers.image.source="https://github.com/transprogrammer/rodhaj" \ No newline at end of file +LABEL org.opencontainers.image.source="https://github.com/transprogrammer/rodhaj"