This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
forked from linuxserver/docker-blender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
117 lines (104 loc) · 2.77 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntujammy
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
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 -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 \
libx11-dev \
libxerces-c-dev \
libzipios++-dev \
qtbase5-dev-tools \
qtchooser \
qtbase5-dev \
qt5-qmake \
qttools5-dev \
libqt5opengl5-dev \
libqt5svg5-dev \
qtwebengine5-dev \
libqt5xmlpatterns5-dev \
libqt5x11extras5-dev \
libpyside2-dev \
libshiboken2-dev \
pyside2-tools \
pyqt5-dev-tools \
python3-dev \
python3-pip \
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 \
python3-pyside2.qtuitools \
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 \
pyside2-tools \
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/*
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)
# Create a symbolic link to invoke FreeCAD with 'freecad'
RUN ln -s /freecad-build/bin/FreeCAD /usr/local/bin/freecad
# add local files
COPY /root /
# ports and volumes
EXPOSE 3000
VOLUME /config