upload-sorter init
This commit is contained in:
20
upload-sorter/DOCKERFILE
Normal file
20
upload-sorter/DOCKERFILE
Normal file
@ -0,0 +1,20 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the sort.py file to the working directory
|
||||
COPY sort.py .
|
||||
COPY requirements.txt .
|
||||
|
||||
# Ensure pip
|
||||
RUN python -m ensurepip
|
||||
|
||||
# Upgrade pip
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
# Install requirements
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# Set the entry point to sort.py
|
||||
ENTRYPOINT ["python", "/app/sort.py"]
|
Reference in New Issue
Block a user