Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

Commit

Permalink
fix dockerfile (maybe)
Browse files Browse the repository at this point in the history
  • Loading branch information
egelja authored Oct 5, 2023
1 parent 855b08b commit 6fa4c27
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions Dockerfile
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

0 comments on commit 6fa4c27

Please sign in to comment.