2019-11-17 19:58:52 +03:00
|
|
|
FROM ubuntu:16.04 as base
|
|
|
|
|
|
|
|
ENV USER user
|
|
|
|
ENV HOME /home/$USER
|
|
|
|
ENV GOPATH $HOME/work
|
|
|
|
|
|
|
|
RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git
|
|
|
|
RUN GO=go1.12.9.linux-amd64.tar.gz && curl -sL --retry 10 --retry-delay 60 -O https://dl.google.com/go/$GO && tar -xzf $GO -C /usr/local
|
|
|
|
RUN /usr/local/go/bin/go get -tags=no_env github.com/therecipe/qt/cmd/...
|
|
|
|
|
|
|
|
|
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
|
2019-06-27 23:16:04 +03:00
|
|
|
ENV QT_API 5.13.0
|
2018-08-03 21:17:13 +03:00
|
|
|
ENV QT_DOCKER true
|
2019-04-20 20:34:45 +03:00
|
|
|
ENV QT_QMAKE_DIR /usr/local/Qt-5.13.0/bin
|
2018-08-03 21:17:13 +03:00
|
|
|
|
2019-11-17 19:58:52 +03:00
|
|
|
COPY --from=base /usr/local/go /usr/local/go
|
|
|
|
COPY --from=base $GOPATH/bin $GOPATH/bin
|
|
|
|
COPY --from=base $GOPATH/src/github.com/therecipe/qt $GOPATH/src/github.com/therecipe/qt
|
2018-11-07 21:45:50 +03:00
|
|
|
COPY --from=therecipe/qt:js_base $HOME/emsdk $HOME/emsdk
|
|
|
|
COPY --from=therecipe/qt:js_base $HOME/.emscripten $HOME/.emscripten
|
2019-04-20 20:34:45 +03:00
|
|
|
COPY --from=therecipe/qt:js_base /usr/local/Qt-5.13.0 /usr/local/Qt-5.13.0
|
2018-08-03 21:17:13 +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
|
2019-04-20 20:34:45 +03:00
|
|
|
RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install git && apt-get -qq clean
|
2018-08-03 21:17:13 +03:00
|
|
|
RUN go get github.com/gopherjs/gopherjs
|
|
|
|
|
|
|
|
RUN $GOPATH/bin/qtsetup prep
|
|
|
|
RUN $GOPATH/bin/qtsetup check js
|
2018-11-06 20:16:33 +03:00
|
|
|
RUN QT_STUB=true $GOPATH/bin/qtsetup generate
|
2018-08-03 21:17:13 +03:00
|
|
|
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
|
2019-05-22 01:01:13 +03:00
|
|
|
|
2019-06-02 00:45:14 +03:00
|
|
|
RUN apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates git pkg-config
|