forked from wiedehopf/mlat-server
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
18 lines (17 loc) · 699 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM docker.io/python:3.13-slim AS builder
WORKDIR /app
COPY requirements.txt .
RUN export BUILD_DEPS="libopenblas-dev liblapack-dev libmpfr-dev libmpc-dev libgfortran5 gfortran pkg-config gcc g++ build-essential cmake make" && \
apt-get update && \
apt-get -y install $BUILD_DEPS && \
pip install --no-cache-dir -r requirements.txt && \
apt-get purge -y --auto-remove $BUILD_DEPS && \
rm -rf /var/lib/apt/lists/*
COPY . .
RUN apt-get update && apt-get -y install gcc && \
pip install setuptools && \
python3 setup.py build_ext --inplace && \
apt-get purge -y --auto-remove gcc && \
rm -rf /var/lib/apt/lists/*
COPY . .
ENTRYPOINT ["python", "/app/mlat-server"]