tayyabimam commited on
Commit
c083fc2
·
verified ·
1 Parent(s): e60cca8

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -51
Dockerfile DELETED
@@ -1,51 +0,0 @@
1
- FROM python:3.9-slim
2
-
3
- WORKDIR /app
4
-
5
- # System dependencies for face_recognition
6
- RUN apt-get update && apt-get install -y \
7
- build-essential \
8
- cmake \
9
- libsm6 \
10
- libxext6 \
11
- libxrender-dev \
12
- libgl1-mesa-glx \
13
- git \
14
- curl \
15
- nodejs \
16
- npm \
17
- && apt-get clean && rm -rf /var/lib/apt/lists/*
18
-
19
- # Install Node.js for frontend
20
- RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
21
- RUN apt-get update && apt-get install -y nodejs
22
-
23
- # Copy frontend files and build
24
- COPY frontend/ ./frontend/
25
- WORKDIR /app/frontend
26
- RUN npm install
27
- RUN npm run build
28
-
29
- # Copy backend requirements and install
30
- WORKDIR /app
31
- COPY server/requirements.txt ./
32
- RUN pip install --no-cache-dir -r requirements.txt
33
- RUN pip install face-recognition opencv-python-headless matplotlib fastapi uvicorn python-multipart
34
-
35
- # Copy backend files
36
- COPY server/ ./server/
37
-
38
- # Create necessary directories
39
- RUN mkdir -p server/uploaded_images
40
- RUN mkdir -p server/static
41
- RUN mkdir -p server/models
42
- RUN mkdir -p server/uploaded_videos
43
-
44
- # Create wrapper app.py in root
45
- COPY app.py ./
46
-
47
- # Expose the port
48
- EXPOSE 7860
49
-
50
- # Start the server
51
- CMD ["python", "app.py"]