diff --git a/Dockerfile-example b/Dockerfile-example index f98e92e..92d4933 100644 --- a/Dockerfile-example +++ b/Dockerfile-example @@ -1,7 +1,12 @@ -# Use a Python runtime as a parent image -FROM python:3.10-slim +# Use an official Python runtime as a base image +FROM python:3.11 -# Set the working directory in the container +RUN apt-get update \ + && apt-get install -y --no-install-recommends git \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +# Set the working directory to /app WORKDIR /app # Copy the current directory contents into the container at /app @@ -10,10 +15,5 @@ COPY . /app # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt -# Update the package index and install Midnight Commander -RUN apt-get update && \ - apt-get install -y mc && \ - rm -rf /var/lib/apt/lists/* - -# Run main.py when the container launches +# Run app.py when the container launches CMD ["python", "main.py"]