NitinBot002 commited on
Commit
d65b1b7
·
verified ·
1 Parent(s): 81b952e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -14
Dockerfile CHANGED
@@ -1,27 +1,27 @@
1
- # Use official Python runtime as base image
2
- FROM python:3.11-slim
3
 
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Install system dependencies
8
  RUN apt-get update && apt-get install -y \
 
 
9
  curl \
10
- git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
 
 
 
 
 
13
  # Upgrade pip
14
- RUN pip install --upgrade pip
15
 
16
- # Install coral-server with specific version (check PyPI for latest)
17
  RUN pip install coral-server
18
 
19
  # Expose port 5555
20
  EXPOSE 5555
21
 
22
- # Set environment variables if needed
23
- ENV CORAL_SERVER_PORT=5555
24
- ENV CORAL_SERVER_HOST=0.0.0.0
25
-
26
  # Run coral-server
27
- CMD ["coral-server", "--port", "5555"]
 
1
+ # Start with Java image and add Python
2
+ FROM eclipse-temurin:17-jre
3
 
4
+ # Install Python and pip
 
 
 
5
  RUN apt-get update && apt-get install -y \
6
+ python3 \
7
+ python3-pip \
8
  curl \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Create symbolic links for python and pip
12
+ RUN ln -s /usr/bin/python3 /usr/bin/python
13
+
14
+ # Set working directory
15
+ WORKDIR /app
16
+
17
  # Upgrade pip
18
+ RUN python -m pip install --upgrade pip
19
 
20
+ # Install coral-server
21
  RUN pip install coral-server
22
 
23
  # Expose port 5555
24
  EXPOSE 5555
25
 
 
 
 
 
26
  # Run coral-server
27
+ CMD ["coral-server","--p", "5555"]