mirror of
https://codeberg.org/demostf/sync.git
synced 2026-06-04 00:54:08 +02:00
15 lines
No EOL
359 B
Docker
15 lines
No EOL
359 B
Docker
FROM ekidd/rust-musl-builder AS build
|
|
|
|
# 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 .
|
|
|
|
RUN cargo build --release
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=build /home/rust/src/target/x86_64-unknown-linux-musl/release/sync /
|
|
EXPOSE 80
|
|
|
|
CMD ["/sync"] |