Newbra
This commit is contained in:
Sean Hellum 2019-09-27 20:31:54 -05:00 committed by GitHub
commit 74e60fbef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 19 deletions

12
.gitpod.Dockerfile vendored
View File

@ -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

View File

@ -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