2018-08-14 21:10:08 +03:00
|
|
|
FROM therecipe/qt:js_base_3 as base
|
2018-06-09 03:31:50 +03:00
|
|
|
|
2018-06-25 19:32:27 +03:00
|
|
|
RUN git clone -b 5.11.0 https://code.qt.io/qt/qtcharts.git /opt/qtcharts
|
|
|
|
RUN git clone -b 5.11.0 https://code.qt.io/qt/qtxmlpatterns.git /opt/qtxmlpatterns
|
|
|
|
RUN git clone -b 5.11.0 https://code.qt.io/qt/qtcanvas3d.git /opt/qtcanvas3d
|
|
|
|
RUN git clone -b 5.11.0 https://code.qt.io/qt/qtdatavis3d.git /opt/qtdatavis3d
|
|
|
|
RUN git clone -b 5.11.0 https://code.qt.io/qt/qtmultimedia.git /opt/qtmultimedia
|
2018-06-09 03:31:50 +03:00
|
|
|
|
2018-08-03 21:17:13 +03:00
|
|
|
RUN echo "#!/bin/bash\nsource $HOME/emsdk/emsdk_env.sh \
|
2018-06-25 19:32:27 +03:00
|
|
|
&& cd /opt/qtcharts && /opt/qtbase/bin/qmake *.pro && make \
|
|
|
|
&& cd /opt/qtxmlpatterns && /opt/qtbase/bin/qmake *.pro && make \
|
|
|
|
&& cd /opt/qtcanvas3d && /opt/qtbase/bin/qmake *.pro && make \
|
|
|
|
&& cd /opt/qtdatavis3d && /opt/qtbase/bin/qmake *.pro && make \
|
|
|
|
&& cd /opt/qtmultimedia && /opt/qtbase/bin/qmake *.pro && make" > $HOME/build.sh \
|
2018-06-09 03:31:50 +03:00
|
|
|
&& chmod +x $HOME/build.sh && $HOME/build.sh
|
|
|
|
|
|
|
|
|
2018-08-03 21:17:13 +03:00
|
|
|
FROM ubuntu:16.04
|
|
|
|
LABEL maintainer therecipe
|
2018-06-09 03:31:50 +03:00
|
|
|
|
2018-08-03 21:17:13 +03:00
|
|
|
ENV USER user
|
|
|
|
ENV HOME /home/$USER
|
|
|
|
ENV GOPATH $HOME/work
|
|
|
|
ENV PATH /usr/local/go/bin:$PATH
|
|
|
|
ENV QT_DIR /opt/Qt
|
|
|
|
ENV QT_DOCKER true
|
|
|
|
ENV QT_QMAKE_DIR /opt/qtbase/bin
|
|
|
|
|
|
|
|
COPY --from=therecipe/qt:linux /usr/local/go /usr/local/go
|
|
|
|
COPY --from=therecipe/qt:linux $GOPATH/bin $GOPATH/bin
|
|
|
|
COPY --from=therecipe/qt:linux $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt
|
|
|
|
COPY --from=therecipe/qt:linux /opt/Qt/5.11.1/gcc_64/include /opt/Qt/5.11.1/gcc_64/include
|
|
|
|
COPY --from=therecipe/qt:linux /opt/Qt/Docs /opt/Qt/Docs
|
|
|
|
COPY --from=base $HOME/emsdk $HOME/emsdk
|
|
|
|
COPY --from=base $HOME/.emscripten $HOME/.emscripten
|
|
|
|
COPY --from=base /opt /opt
|
|
|
|
|
|
|
|
RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install git && apt-get -qq clean
|
|
|
|
RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install python2.7 nodejs cmake default-jre && apt-get -qq clean
|
|
|
|
RUN ln -s /usr/bin/python2.7 /usr/bin/python
|
|
|
|
|
|
|
|
RUN go get github.com/gopherjs/gopherjs
|
|
|
|
|
|
|
|
RUN $GOPATH/bin/qtsetup prep
|
|
|
|
RUN $GOPATH/bin/qtsetup check js
|
|
|
|
RUN $GOPATH/bin/qtsetup generate js
|
|
|
|
RUN $GOPATH/bin/qtsetup install js
|
|
|
|
RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build js && rm -rf ./deploy
|