File size: 740 Bytes
06db6e9
7d25959
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1d214ea
06db6e9
7d25959
06db6e9
7d25959
06db6e9
7d25959
06db6e9
e339588
 
06db6e9
e339588
1d214ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Use an official Python runtime as a parent image
# FROM python:3.7

# # Set the working directory to /app
# WORKDIR /app

# # Copy the current directory contents into the container at /app
# COPY . /app

# # Install any needed packages specified in requirements.txt
# RUN pip install --no-cache-dir -r requirements.txt

# # Expose port 8000 for Hugging Face Inference API
# EXPOSE 8000

# # Run the application when the container launches



FROM python:3.9

WORKDIR /code

COPY . /code

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# Assuming your Django project is inside the "Interface" folder
WORKDIR /code/Interface

# Run the Django development server
CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]