VishwaTechnologiesPvtLtd
commited on
Commit
·
3750ba1
1
Parent(s):
63f82d3
Dock
Browse files- Dockerfile +16 -20
Dockerfile
CHANGED
@@ -1,27 +1,23 @@
|
|
1 |
-
|
2 |
-
FROM python:3.10-slim
|
3 |
|
4 |
-
# Install
|
5 |
-
RUN apt-get update && \
|
6 |
-
|
7 |
-
|
|
|
|
|
8 |
|
9 |
-
#
|
10 |
-
|
11 |
-
|
12 |
|
13 |
-
#
|
14 |
-
|
|
|
15 |
|
16 |
-
#
|
17 |
-
|
18 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
19 |
-
|
20 |
-
# Copy application code
|
21 |
COPY . .
|
22 |
|
23 |
-
#
|
24 |
-
EXPOSE 7860
|
25 |
-
|
26 |
-
# Default command (update as needed)
|
27 |
CMD ["python", "app.py"]
|
|
|
1 |
+
FROM python:3.10
|
|
|
2 |
|
3 |
+
# Install dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
openjdk-17-jre-headless \
|
6 |
+
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \
|
7 |
+
curl fakeroot && \
|
8 |
+
rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
+
# Setup Node.js (if needed)
|
11 |
+
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
12 |
+
apt-get install -y nodejs
|
13 |
|
14 |
+
# Python dependencies
|
15 |
+
COPY requirements.txt /tmp/requirements.txt
|
16 |
+
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
17 |
|
18 |
+
# Set workdir
|
19 |
+
WORKDIR /home/user/app
|
|
|
|
|
|
|
20 |
COPY . .
|
21 |
|
22 |
+
# Your app entrypoint
|
|
|
|
|
|
|
23 |
CMD ["python", "app.py"]
|