File size: 490 Bytes
8a572af
 
 
 
 
 
 
 
 
 
b947639
8a572af
 
 
 
 
 
 
 
 
 
00e0ee2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.12.2

# Set workdir
WORKDIR /app

# Copy files
COPY requirements.txt requirements.txt
COPY templates/ /app/templates/
COPY static/ /app/static
COPY merge_sql_nosql.py merge_sql_nosql.py
COPY app.py app.py

# Install dependencies
RUN pip install -r requirements.txt
RUN mkdir -p /app/cache /app/uploads /app/data && chmod -R 777 /app/cache /app/uploads /app/data
RUN mkdir -p /static
RUN chmod -R 777 /app

# Expose default port for Spaces
EXPOSE 7860

CMD ["python", "app.py"]