-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
46 lines (42 loc) · 1.23 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
FROM alpine
RUN apk add --update \
libtool \
autoconf \
automake \
g++ \
git \
make \
cmake \
py3-sip-dev \
python3-dev \
&& mkdir -p /usr/src/
WORKDIR /usr/src/
RUN git clone -b 'master' --single-branch --depth 1 https://github.com/protocolbuffers/protobuf.git
WORKDIR /usr/src/protobuf
RUN /usr/src/protobuf/autogen.sh \
&& ./configure \
&& make \
&& make install
WORKDIR /usr/src/
RUN git clone -b 'master' --single-branch --depth 1 https://github.com/Ultimaker/libArcus.git
WORKDIR /usr/src/libArcus
RUN mkdir build && cd build \
&& cmake /usr/src/libArcus \
&& make \
&& make install
WORKDIR /usr/src/
RUN git clone -b 'master' --single-branch --depth 1 https://github.com/Ultimaker/Cura.git \
&& mkdir /usr/definitions \
&& cp /usr/src/Cura/resources/definitions/* /usr/definitions \
&& cp /usr/src/Cura/resources/extruders/* /usr/definitions \
&& cp /usr/src/Cura/resources/quality/creality/base/* /usr/definitions
RUN git clone -b 'master' --single-branch --depth 1 https://github.com/Ultimaker/CuraEngine.git
WORKDIR /usr/src/CuraEngine
RUN git checkout -b origin/master \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make
COPY . .
ENTRYPOINT [ "/usr/src/CuraEngine/build/CuraEngine"]
CMD ["help"]