-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 990 Bytes
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 990 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
28
29
30
31
32
33
34
# Stage 1: Get the library
FROM jwgcurrie/pepper-box:01-26-latest AS bridge-source
# Stage 2: Build the Wizard
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /usr/src/app
# Install system dependencies for OpenCV
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Copy the requirements file into the container
COPY requirements.txt .
# Install base requirements
RUN pip install --no-cache-dir -r requirements.txt
# Copy and install the naoqi_proxy_client package from the image
COPY --from=bridge-source /home/pepperdev/py3-naoqi-bridge /usr/src/PepperBox/py3-naoqi-bridge
RUN pip install /usr/src/PepperBox/py3-naoqi-bridge
# Pre-download the NLP model validation during build
COPY pepper_wizard/utils/download_model.py .
RUN python download_model.py
# Copy the rest of the application's code into the container
# Define the command to run your app
CMD ["python", "-m", "pepper_wizard.main"]