diff --git a/Dockerfile b/Dockerfile index 963a22e..acfe6ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,18 @@ -# Build stage -FROM python:3.9-slim AS build - -WORKDIR /app - -COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt - -COPY . . - -# Final stage +# Use the official Python image from the Docker Hub FROM python:3.9-slim +# 현재 디렉토리의 모든 파일들을 컨테이너의 /app 디렉토리에 복사한다. +COPY . /app + +# Set the working directory in the container WORKDIR /app -COPY --from=build /app /app +# Copy the requirements.txt file into the container +RUN pip install -r requirements.txt + +# Make port 5000 available to the world outside this container EXPOSE 5000 +# Command to run the application CMD ["python", "app.py"] \ No newline at end of file