Update Dockerfile

This commit is contained in:
Choco
2024-02-03 17:15:07 +08:00
committed by GitHub
parent d8cd4c1838
commit 989743448c

View File

@@ -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"]