2019-09-28 01:01:34 +02:00
|
|
|
FROM gitpod/workspace-full
|
|
|
|
|
|
|
|
USER root
|
2019-09-28 02:51:42 +02:00
|
|
|
RUN apt-get update && apt-get install -y libssl-dev \
|
|
|
|
libxcb-composite0-dev \
|
|
|
|
pkg-config \
|
|
|
|
curl
|
|
|
|
RUN echo "##vso[task.prependpath]/root/.cargo/bin" && \
|
|
|
|
rustc -Vv && \
|
|
|
|
if $RELEASE; then cargo build --release && cargo run --release; \
|
|
|
|
cp target/release/nu /usr/local/bin; \
|
|
|
|
else cargo build; \
|
|
|
|
cp target/debug/nu /usr/local/bin; fi;
|
|
|
|
RUN cargo build
|