This repository has been archived by the owner on Nov 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
FROM ubuntu:latest | ||
#build stage | ||
FROM python:3.11-slim as build | ||
|
||
RUN pip install conan \ | ||
&& sudo apt update \ | ||
&& sudo apt install -y --no-install-recommends build-essential libssl-dev | ||
|
||
WORKDIR /app | ||
RUN apt-get update && apt-get install -y python3 python3-dev python3-pip python3.11-venv libpython3.11-dev | ||
RUN python3 -m pip install pandas numpy scipy scikit-learn | ||
RUN apt-get install -y ca-certificates | ||
RUN ln -s /usr/lib/python3.11/config-3.11-x86_64-linux-gnu/libpython3.11.so /usr/lib/libpython3.11.so.1.0 | ||
COPY . /app | ||
|
||
RUN cat .github/scripts/conan-profile.sh | bash \ | ||
&& conan install . -b missing \ | ||
&& cmake --preset=ci-docker \ | ||
&& cmake --build build --config Release -j 2 | ||
|
||
|
||
# Main stange | ||
FROM python:3.11-slim | ||
|
||
RUN pip install numpy pandas polars scipy scikit-learn | ||
|
||
COPY ./build/NUTC-client ./NUTC | ||
RUN chmod +x ./NUTC | ||
COPY --from=build /app/build/NUTC-client /bin/NUTC-linter | ||
RUN chmod +x /bin/NUTC-linter | ||
|
||
CMD ./NUTC | ||
CMD NUTC-linter |