Skip to content

Commit

Permalink
optimize dockerfile (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShootGan authored Mar 12, 2024
1 parent ab0f8ed commit c2ac55c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3
FROM python:3.12-slim

# Add labels to describe the Docker image
LABEL org.opencontainers.image.description="The image includes all the necessary dependencies and configurations to run Ikabot seamlessly."
Expand All @@ -9,9 +9,11 @@ WORKDIR /ikabot
COPY . .

# Install dependencies
RUN pip install --upgrade pip
RUN pip install -e .
RUN apt-get update
RUN apt-get install dnsutils -y
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -e .
RUN apt-get update && \
apt-get install --no-install-recommends dnsutils -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

CMD "python3" "-m" "ikabot"
CMD ["python3", "-m", "ikabot"]

0 comments on commit c2ac55c

Please sign in to comment.