-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (23 loc) · 840 Bytes
/
Dockerfile
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
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
# Install dependencies
RUN apt-get update && \
apt-get install -y python3 python3-pip python3-tk && \
rm -rf /var/lib/apt/lists/*
# Install required Python packages
RUN pip3 install numpy>=1.21.5 transforms3d>=0.4.1 matplotlib>=3.5.1 scipy>=1.8.0
# Configure Matplotlib to use Agg backend
RUN mkdir -p /root/.config/matplotlib && \
echo "backend : Agg" >> /root/.config/matplotlib/matplotlibrc
# Set working directory
WORKDIR /app
# Copy project files to working directory
COPY . /app
# Install dependencies
RUN apt-get update && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/Aceinna/gnss-ins-sim /app/gnss-ins-sim
RUN pip3 install /app/gnss-ins-sim
# Set the entrypoint for the container
ENTRYPOINT [ "bash" ]