diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 30258b27be..b832017f62 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -1,15 +1,7 @@ FROM gitpod/workspace-full - USER root RUN apt-get update && apt-get install -y libssl-dev \ libxcb-composite0-dev \ pkg-config \ - curl -RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain `cat rust-toolchain` -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 + curl \ + rustc diff --git a/.gitpod.yml b/.gitpod.yml index 87dd64a333..fce1f9b424 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,11 +1,5 @@ image: - file: docker/Dockerfile - -# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/43_config_ports/ -ports: -- port: 3000 - -# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/44_config_start_tasks/ + file: .gitpod.Dockerfile tasks: -- init: echo 'init script' # runs during prebuild - command: echo 'start script' + - init: cargo build + command: cargo run