File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 2
2
FROM ekidd/rust-musl-builder:nightly AS builder
3
3
4
4
# Add the source code.
5
- ADD . ./
6
-
7
- # Fix permissions on source code.
8
- RUN sudo chown -R rust:rust /home/rust
5
+ COPY --chown=rust:rust . ./
9
6
10
7
# Delete and re-install rustup in order to get the latest verison of Rust nightly.
11
8
# This is necessary due to a bug in Rust: https://github.com/rust-lang-nursery/rustup.rs/issues/1239
@@ -14,17 +11,11 @@ RUN curl https://sh.rustup.rs -sSf | \
14
11
sh -s -- -y && \
15
12
rustup target add x86_64-unknown-linux-musl
16
13
17
- WORKDIR ~
18
-
19
14
# Build the `tdb-server` application.
20
- RUN PKG_CONFIG_PATH=/usr/local/musl/lib/pkgconfig \
21
- LDFLAGS=-L/usr/local/musl/lib \
22
- cargo build --bin tdb-server --target x86_64-unknown-linux-musl --release
15
+ RUN cargo build --bin tdb-server --release
23
16
24
17
# Build the `tdb` application.
25
- RUN PKG_CONFIG_PATH=/usr/local/musl/lib/pkgconfig \
26
- LDFLAGS=-L/usr/local/musl/lib \
27
- cargo build --bin tdb --target x86_64-unknown-linux-musl --release
18
+ RUN cargo build --bin tdb --release
28
19
29
20
# Now, we need to build the _real_ Docker container, copying in `tdb-server`
30
21
FROM alpine:latest
You can’t perform that action at this time.
0 commit comments