Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Compile from source
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmra committed Aug 31, 2023
1 parent 369bcc1 commit 34eb130
Showing 1 changed file with 79 additions and 10 deletions.
89 changes: 79 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,99 @@ LABEL maintainer="thelamer"
# app title
ENV TITLE=FreeCAD

# Add FreeCAD PPA
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:freecad-maintainers/freecad-stable

RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install --no-install-recommends -y \
ocl-icd-libopencl1 \
snapd \
libfuse2 \
python3-pip \
python3-git \
python3-xdg \
apt-get install -y \
build-essential \
cmake \
libtool \
lsb-release \
python3 \
swig \
libboost-dev \
libboost-date-time-dev \
libboost-filesystem-dev \
libboost-graph-dev \
libboost-iostreams-dev \
libboost-program-options-dev \
libboost-python-dev \
libboost-regex-dev \
libboost-serialization-dev \
libboost-thread-dev \
libcoin-dev \
libeigen3-dev \
libgts-bin \
libgts-dev \
libkdtree++-dev \
libmedc-dev \
libopencv-dev \
libproj-dev \
libvtk6-dev \
libx11-dev \
libxerces-c-dev \
libzipios++-dev \
qtbase5-dev \
qttools5-dev \
qt5-default \
libqt5opengl5-dev \
libqt5svg5-dev \
qtwebengine5-dev \
libqt5xmlpatterns5-dev \
libqt5x11extras5-dev \
libpyside2-dev \
libshiboken2-dev \
pyside2-tools \
pyqt5-dev-tools \
python3-dev \
python3-matplotlib \
python3-packaging \
python3-pivy \
python3-ply \
python3-pyside2.qtcore \
python3-pyside2.qtgui \
python3-pyside2.qtsvg \
python3-pyside2.qtwidgets \
python3-pyside2.qtnetwork \
python3-pyside2.qtwebengine \
python3-pyside2.qtwebenginecore \
python3-pyside2.qtwebenginewidgets \
python3-pyside2.qtwebchannel \
xz-utils && \
libocct*-dev \
libocct-data-exchange-dev \
libocct-draw-dev \
libocct-foundation-dev \
libocct-modeling-algorithms-dev \
libocct-modeling-data-dev \
libocct-ocaf-dev \
libocct-visualization-dev \
occt-draw \
python3-pyside2uic \
git && \
ln -s libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libOpenCL.so && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*

# Download the FreeCAD AppImage
RUN snap install freecad
RUN add-apt-repository universe

RUN apt-get update && apt-get install -y libvtk7-dev

# Clone FreeCAD source
RUN git clone https://github.com/FreeCAD/FreeCAD.git freecad-source

# Create a build directory and compile FreeCAD
RUN mkdir freecad-build && \
cd freecad-build && \
cmake ../freecad-source && \
make -j$(nproc --ignore=2)

# add local files
COPY /root /
Expand Down

0 comments on commit 34eb130

Please sign in to comment.