1
0
Fork 0
mirror of https://github.com/icewind1991/clipboard-sync synced 2026-06-03 18:34:07 +02:00

fix static server build script

This commit is contained in:
Robin Appelman 2019-06-15 14:59:28 +02:00
commit d7e8ef69f0
2 changed files with 11 additions and 1 deletions

View file

@ -7,7 +7,7 @@ install:
- docker pull ekidd/rust-musl-builder:latest - docker pull ekidd/rust-musl-builder:latest
script: script:
- cargo build - cargo build
- "./build_static.sh server" - "./build_static.sh"
env: env:
global: global:
- COMMIT=${TRAVIS_COMMIT::8} - COMMIT=${TRAVIS_COMMIT::8}

10
Dockerfile.build Normal file
View file

@ -0,0 +1,10 @@
FROM ekidd/rust-musl-builder AS build
RUN sudo apt-get update && sudo apt-get install -y xorg-dev python3
# We need to add the source code to the image because `rust-musl-builder`
# assumes a UID of 1000, but TravisCI has switched to 2000.
ADD . ./
RUN sudo chown -R rust:rust .
CMD cargo build --release --bin server