Skip to content

Commit

Permalink
Dockerfile: 修改dockerfile满足分布编译需求
Browse files Browse the repository at this point in the history
  • Loading branch information
leaeasy committed Apr 1, 2020
1 parent f755a7a commit d93fc92
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 26 deletions.
19 changes: 0 additions & 19 deletions mainwindow.cpp

This file was deleted.

15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
FROM tefworkshop/qt5-gui

FROM linakesi/qt5-builder as builder
MAINTAINER cetc15

#RUN apt-get update && apt-get install -y apt-utils sudo
USER root

COPY . /home/HelloWorldGui
RUN tar xvf /home/HelloWorldGui/lib.tar -C /usr
WORKDIR /home/HelloWorldGui
RUN tar xvf /home/HelloWorldGui/lib.tar -C /usr
RUN qmake HelloWorldGui.pro; make
RUN chmod +x /home/HelloWorldGui/HelloWorldGui; ls /home/HelloWorldGui/
RUN chmod +x /home/HelloWorldGui/HelloWorldGui

CMD /home/HelloWorldGui/HelloWorldGui
FROM linakesi/qt5-release
COPY lib.tar /home/HelloWorldGui/lib.tar
RUN tar xvf /home/HelloWorldGui/lib.tar -C /usr
COPY --from=builder /home/HelloWorldGui/HelloWorldGui /usr/bin/HelloWorldGui
CMD ["HelloWorldGui"]

Empty file modified git-cmd.sh
100644 → 100755
Empty file.

0 comments on commit d93fc92

Please sign in to comment.