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:
parent
11acb4719c
commit
d7e8ef69f0
2 changed files with 11 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ install:
|
|||
- docker pull ekidd/rust-musl-builder:latest
|
||||
script:
|
||||
- cargo build
|
||||
- "./build_static.sh server"
|
||||
- "./build_static.sh"
|
||||
env:
|
||||
global:
|
||||
- COMMIT=${TRAVIS_COMMIT::8}
|
||||
|
|
|
|||
10
Dockerfile.build
Normal file
10
Dockerfile.build
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue