forked from extern/nushell
commit
74e60fbef8
12
.gitpod.Dockerfile
vendored
12
.gitpod.Dockerfile
vendored
@ -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
|
||||
|
12
.gitpod.yml
12
.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
|
||||
|
Loading…
Reference in New Issue
Block a user