Skip to content

Commit

Permalink
Fix dockerfile not building
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 committed Nov 11, 2023
1 parent 1100dcb commit 706f8e2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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

Expand All @@ -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"
LABEL org.opencontainers.image.source="https://github.com/transprogrammer/rodhaj"

0 comments on commit 706f8e2

Please sign in to comment.