Spaces:
Sleeping
Sleeping
Suchinthana
commited on
Commit
·
6ac2a7c
1
Parent(s):
2ded1bb
Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use a base image with Python
|
2 |
+
FROM python:3.12
|
3 |
+
|
4 |
+
# Install system dependencies
|
5 |
+
RUN apt-get update && apt-get install -y \
|
6 |
+
libsentencepiece-dev
|
7 |
+
|
8 |
+
# Install Python dependencies
|
9 |
+
COPY requirements.txt .
|
10 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
+
|
12 |
+
# Run the application
|
13 |
+
COPY . /app
|
14 |
+
WORKDIR /app
|
15 |
+
CMD ["python", "app.py"]
|