gopichandra commited on
Commit
9055d0e
·
verified ·
1 Parent(s): 3a1e578

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -15
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
- # Use Python 3.10 base image
2
  FROM python:3.10
3
 
4
- # Set working directory in container
5
  WORKDIR /home/user/app
6
 
7
  # Install system dependencies
@@ -14,29 +14,21 @@ RUN apt-get update && apt-get install -y \
14
  cmake \
15
  rsync \
16
  libgl1-mesa-glx \
 
17
  && rm -rf /var/lib/apt/lists/* \
18
  && git lfs install
19
 
20
- # Install curl and setup Node.js for frontend (optional, can be removed if not needed)
21
- RUN apt-get update && apt-get install -y curl \
22
- && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
23
- && apt-get install -y nodejs \
24
- && rm -rf /var/lib/apt/lists/* && apt-get clean
25
-
26
- # Copy the requirements.txt into the container
27
  COPY requirements.txt /tmp/requirements.txt
28
 
29
  # Install Python dependencies
30
  RUN pip install --no-cache-dir -r /tmp/requirements.txt
31
 
32
- # Copy application code to the container
33
  COPY . /home/user/app
34
 
35
- # Expose the port for the application (if running a web server)
36
  EXPOSE 8080
37
 
38
- # Set environment variables (if needed)
39
- ENV PORT=8080
40
-
41
- # Run the application (adjust the command to your app's entry point)
42
  CMD ["python", "app.py"]
 
1
+ # Use Python 3.10 as base image
2
  FROM python:3.10
3
 
4
+ # Set working directory
5
  WORKDIR /home/user/app
6
 
7
  # Install system dependencies
 
14
  cmake \
15
  rsync \
16
  libgl1-mesa-glx \
17
+ curl \
18
  && rm -rf /var/lib/apt/lists/* \
19
  && git lfs install
20
 
21
+ # Copy requirements.txt into container
 
 
 
 
 
 
22
  COPY requirements.txt /tmp/requirements.txt
23
 
24
  # Install Python dependencies
25
  RUN pip install --no-cache-dir -r /tmp/requirements.txt
26
 
27
+ # Copy application code into container
28
  COPY . /home/user/app
29
 
30
+ # Expose port (if web app, modify this part accordingly)
31
  EXPOSE 8080
32
 
33
+ # Run the application (adjust this to your entry point)
 
 
 
34
  CMD ["python", "app.py"]