File size: 1,202 Bytes
0439049
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
35
36
37
38
39
40
41
42
43
44
45
FROM python:3.11-slim

# non-interactive apt + wheels only (faster, avoids abuse flags)
ENV DEBIAN_FRONTEND=noninteractive
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV PIP_NO_CACHE_DIR=1
# ENV PIP_ONLY_BINARY=:all:  # Commented out to allow building ruckig from source

# Install build dependencies for ruckig
RUN apt-get update && apt-get install -y --no-install-recommends \
    libgl1-mesa-dev \
    libglib2.0-0 \
    git \
    build-essential \
    cmake \
    libeigen3-dev \
 && rm -rf /var/lib/apt/lists/*
 
RUN apt-get update && apt-get install -y --no-install-recommends \
    nginx \
 && rm -rf /var/lib/apt/lists/*

WORKDIR /workspace

# your working versions
COPY requirements.txt ./
RUN apt-get update && apt-get install -y --no-install-recommends git && \
    pip install --upgrade pip &&\
    pip install --verbose -r requirements.txt

RUN echo ${PWD} && ls -lR

# Copy planning utilities first
COPY meshcat_shapes.py planning_utils.py ./

# app + nginx config + entrypoint
COPY app.py robot.py nginx.conf run.sh  ws_bridge.py ./
RUN chmod +x /workspace/run.sh \
 && rm -f /etc/nginx/nginx.conf \
 && ln -s /workspace/nginx.conf /etc/nginx/nginx.conf

EXPOSE 7860
CMD ["/workspace/run.sh"]