Skip to content

Commit

Permalink
Adjust http-server/Dockerfile to install networking tools
Browse files Browse the repository at this point in the history
  • Loading branch information
stano45 committed Sep 5, 2024
1 parent a0387b7 commit 5757ffe
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
FROM docker.io/library/python:3.11-slim

WORKDIR /app

ENV PYTHONUNBUFFERED=1

# Install networking tools (net-tools for arp, iproute2 for ip commands)
RUN apt-get update && apt-get install -y \
net-tools iproute2 && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# Copy the application code
COPY main.py /app/

# Expose the application port
EXPOSE 12345

CMD ["python3", "main.py"]

0 comments on commit 5757ffe

Please sign in to comment.