mirror of
https://github.com/nushell/nushell
synced 2024-12-25 04:23:10 +00:00
Update .gitpod.Dockerfile
This commit is contained in:
parent
f7d5ddbc07
commit
6617731d5b
1 changed files with 12 additions and 9 deletions
21
.gitpod.Dockerfile
vendored
21
.gitpod.Dockerfile
vendored
|
@ -1,12 +1,15 @@
|
||||||
FROM gitpod/workspace-full
|
FROM gitpod/workspace-full
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
RUN apt-get update && apt-get install -y libssl-dev \
|
||||||
# Install custom tools, runtime, etc. using apt-get
|
libxcb-composite0-dev \
|
||||||
# For example, the command below would install "bastet" - a command line tetris clone:
|
pkg-config \
|
||||||
#
|
curl
|
||||||
# RUN apt-get update \
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain `cat rust-toolchain`
|
||||||
# && apt-get install -y bastet \
|
RUN echo "##vso[task.prependpath]/root/.cargo/bin" && \
|
||||||
# && apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*
|
rustc -Vv && \
|
||||||
#
|
if $RELEASE; then cargo build --release && cargo run --release; \
|
||||||
# More information: https://www.gitpod.io/docs/42_config_docker/
|
cp target/release/nu /usr/local/bin; \
|
||||||
|
else cargo build; \
|
||||||
|
cp target/debug/nu /usr/local/bin; fi;
|
||||||
|
RUN cargo build
|
||||||
|
|
Loading…
Reference in a new issue