16 lines
579 B
Plaintext
16 lines
579 B
Plaintext
|
|
# Use the official Python image as the base image
|
||
|
|
FROM python:latest
|
||
|
|
# Set the working directory inside the container
|
||
|
|
WORKDIR /app
|
||
|
|
# Copy the requirements.txt file and install dependencies
|
||
|
|
COPY MapView/requirements.txt .
|
||
|
|
RUN sed -i 's/==.*//' requirements.txt
|
||
|
|
|
||
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
RUN pip install --root-user-action ignore --no-cache-dir unittest
|
||
|
|
# Copy the entire application into the container
|
||
|
|
COPY MapView/. .
|
||
|
|
# Run the main.py script inside the container when it starts
|
||
|
|
#CMD ["uvicorn", "main:app", "--host", "0.0.0.0"]
|
||
|
|
CMD ["./test-entry.sh"]
|