Files
Docker Test
mock
Dockerfile
docker-compose.yaml
dockertest-test-http-container_latest.tar.gz
MockDB
__pycache__
composetest
djangotutorial
AfterMergeCodeapceTestResults.png
ConversionToExcel.py
FastAPI test 1000 requests.png
GetSchedulePackager.py
README.md
ReadDB.py
TestBookAppointment.py
TestResultsCodeSpace.png
WriteDB.py
interview_database.xlsx
interview_database.yaml
main.py
newMain.py
postSelectAppointment.py
send_email.py
testhttp.py
web1.html
Interview-Backend/Docker Test/Dockerfile
2024-11-23 12:00:42 -07:00

18 lines
461 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.10-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY ./mock /app
# Install any necessary dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose port 8080 for the container to listen on
EXPOSE 8080
# Command to run the Python server when the container starts
CMD ["python", "server.py"]