From 17ee69c4102631bbce57ab1d368f6bc2c2eca6fc Mon Sep 17 00:00:00 2001 From: Yuki Sawa Date: Wed, 8 Nov 2023 22:07:02 -0800 Subject: [PATCH] clean --- example/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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"]