|
|
@ -6,7 +6,7 @@ RUN useradd -ms /bin/bash rust
|
|
|
|
ADD peldd /usr/bin/peldd
|
|
|
|
ADD peldd /usr/bin/peldd
|
|
|
|
ADD package.sh /usr/bin/package.sh
|
|
|
|
ADD package.sh /usr/bin/package.sh
|
|
|
|
|
|
|
|
|
|
|
|
RUN dnf install -y mingw64-gcc mingw64-freetype mingw64-cairo mingw64-harfbuzz mingw64-pango mingw64-poppler mingw64-gtk3 mingw64-winpthreads-static mingw64-glib2-static gcc boost zip && dnf clean all -y
|
|
|
|
RUN dnf install -y mingw64-gcc mingw64-freetype mingw64-cairo mingw64-harfbuzz mingw64-pango mingw64-poppler mingw64-gtk3 mingw64-winpthreads-static mingw64-glib2-static gcc boost zip git && dnf clean all -y
|
|
|
|
|
|
|
|
|
|
|
|
USER rust
|
|
|
|
USER rust
|
|
|
|
|
|
|
|
|
|
|
@ -18,7 +18,6 @@ RUN . ~/.cargo/env && \
|
|
|
|
rustup target add x86_64-pc-windows-gnu
|
|
|
|
rustup target add x86_64-pc-windows-gnu
|
|
|
|
|
|
|
|
|
|
|
|
ADD cargo.config /home/rust/.cargo/config
|
|
|
|
ADD cargo.config /home/rust/.cargo/config
|
|
|
|
ADD Windows-10 /home/rust/Windows10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENV PKG_CONFIG_ALLOW_CROSS=1
|
|
|
|
ENV PKG_CONFIG_ALLOW_CROSS=1
|
|
|
|
ENV PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/
|
|
|
|
ENV PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/
|
|
|
@ -33,6 +32,6 @@ CMD ["/usr/bin/package.sh"]
|
|
|
|
# $ docker build . -t PROJECTNAME-build-image
|
|
|
|
# $ docker build . -t PROJECTNAME-build-image
|
|
|
|
# 3) Creating a container with the source mounted the image (which kicks off the build):
|
|
|
|
# 3) Creating a container with the source mounted the image (which kicks off the build):
|
|
|
|
# $ docker create -v `pwd`:/home/rust/src --name PROJECTNAME-build PROJECTNAME-build-image
|
|
|
|
# $ docker create -v `pwd`:/home/rust/src --name PROJECTNAME-build PROJECTNAME-build-image
|
|
|
|
# 4) Each time you want to build the project, start the Docker container.
|
|
|
|
# 4) Each time you want to build the project, start the Docker container.
|
|
|
|
# Add "-ai" to watch the build progress.
|
|
|
|
# Add "-ai" to watch the build progress.
|
|
|
|
# $ docker start PROJECTNAME-build
|
|
|
|
# $ docker start PROJECTNAME-build
|
|
|
|