-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 732 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (20 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Use an official Anaconda runtime as the base image
#FROM tensorflow/tensorflow
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y libgl1 build-essential gcc g++ cmake libglib2.0-0
RUN apt install pkg-config libhdf5-dev -y
# Install TensorFlow
RUN python -m pip install tensorflow
# Create and set the working directory
WORKDIR /app
# Copy only the requirements file first to leverage Docker cache
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire application
COPY . .
# The code to run when the container is started:
ENTRYPOINT ["python", "Python/build_sqlite.py", "-g"]
# default argument
CMD ["Florence"]