diff --git a/example/Dockerfile b/example/Dockerfile index 1b4b414..44e678c 100644 --- a/example/Dockerfile +++ b/example/Dockerfile @@ -1,12 +1,11 @@ FROM python:3.10-slim -# Set the working directory in the container to /app +# Create and set the working directory WORKDIR /app -# Copy the current directory contents into the container at /app -COPY . . - -# Install any needed packages specified in requirements.txt +COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt +COPY . . + CMD ["python", "./main.py"]