2018-10-30 18:53:05 +03:00
|
|
|
FROM therecipe/qt:linux as base
|
|
|
|
|
|
|
|
RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git
|
|
|
|
|
|
|
|
RUN mv /usr/local/go /usr/local/go_orig
|
|
|
|
RUN git clone -b wasm-sync-callbacks https://github.com/neelance/go.git /usr/local/go
|
|
|
|
RUN cd /usr/local/go/src && GOROOT_BOOTSTRAP=/usr/local/go_orig ./make.bash
|
|
|
|
|
|
|
|
|
|
|
|
FROM ubuntu:16.04
|
|
|
|
LABEL maintainer therecipe
|
|
|
|
|
|
|
|
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
|
2018-11-06 20:16:33 +03:00
|
|
|
ENV QT_QMAKE_DIR /usr/local/Qt-5.12.0/bin
|
2018-10-30 18:53:05 +03:00
|
|
|
|
|
|
|
COPY --from=base /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=therecipe/qt:js_base_4 $HOME/emsdk $HOME/emsdk
|
|
|
|
COPY --from=therecipe/qt:js_base_4 $HOME/.emscripten $HOME/.emscripten
|
2018-11-06 20:16:33 +03:00
|
|
|
COPY --from=therecipe/qt:js_base_4 /usr/local/Qt-5.12.0 /usr/local/Qt-5.12.0
|
2018-10-30 18:53:05 +03:00
|
|
|
|
|
|
|
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 $GOPATH/bin/qtsetup prep
|
|
|
|
RUN $GOPATH/bin/qtsetup check wasm
|
2018-11-06 20:16:33 +03:00
|
|
|
RUN QT_STUB=true $GOPATH/bin/qtsetup generate
|
2018-10-30 18:53:05 +03:00
|
|
|
RUN $GOPATH/bin/qtsetup generate wasm
|
|
|
|
RUN $GOPATH/bin/qtsetup install wasm
|
|
|
|
RUN cd $GOPATH/src/github.com/therecipe/qt/internal/examples/widgets/line_edits && $GOPATH/bin/qtdeploy build wasm && rm -rf ./deploy
|