Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Dockerfile 599 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  1. # Use an official Python runtime as a parent image
  2. FROM python:3.8-slim
  3. # Set the working directory to /app
  4. WORKDIR /app
  5. # Copy the current directory contents into the container at /app
  6. COPY . /app
  7. # Install any needed packages specified in requirements.txt
  8. RUN pip install -r requirements.txt
  9. # Expose port 8000 for the Django app to run on
  10. EXPOSE 8000
  11. # Run Django migrations and collect static files
  12. RUN python MalariaApp/manage.py migrate
  13. RUN python MalariaApp/manage.py collectstatic --noinput
  14. # Start the Django app
  15. CMD ["python", "MalariaApp/manage.py", "runserver", "0.0.0.0:8000"]
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...