diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..39be50f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM python:3.9.18-slim-bookworm + +# Set the working directory in the container +WORKDIR /app + +# Copy the dependencies file to the working directory +COPY requirements.txt . + +# Install any dependencies + +RUN apt-get update && apt-get install -y gcc + +RUN pip install --upgrade pip + +RUN pip install --no-cache-dir -r requirements.txt + +# Copy the content of the local src directory to the working directory + +COPY . . + +# clean unneeded files +RUN rm -rf /root/.cache/pip +RUN rm -rf /var/lib/apt/lists/* +RUN rm -rf /var/cache/apt/* + + +# Command to run on container start + +CMD [ "python", "./main.py" ] + +# set port +EXPOSE 80 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8ab6294 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +flask \ No newline at end of file