-
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
bs893
committed
Feb 12, 2021
0 parents
commit 2b8a079
Showing
1 changed file
with
42 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM alpine | ||
RUN apk add libarcus --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing | ||
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 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 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 https://github.com/Ultimaker/CuraEngine.git | ||
WORKDIR /usr/src/CuraEngine | ||
RUN ls /usr/lib/libArcus.so.3 | ||
RUN git checkout -b origin/master \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake .. \ | ||
&& make | ||
COPY . . | ||
ENTRYPOINT [ "/usr/src/CuraEngine/build/CuraEngine"] | ||
CMD ["help"] |