adding two Dockerfiles, one for base image and the other for multistage build, and circleci config to test

Signed-off-by: Vanessa Sochat <vsochat@stanford.edu>
This commit is contained in:
Vanessa Sochat
2019-08-27 17:58:45 -04:00
parent 34c042c4fc
commit 2bae2b57ee
3 changed files with 130 additions and 3 deletions

4
docker/Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM nushell/nu-base as base
FROM rust:1.37-slim
COPY --from=base /usr/local/bin/nu /usr/local/bin/nu
ENTRYPOINT ["nu"]

17
docker/Dockerfile.nu-base Normal file
View File

@ -0,0 +1,17 @@
FROM rust:1.37-slim
# docker build -t nushell/nu-base .
# docker run -it nushell/nu-base
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y libssl-dev \
libxcb-composite0-dev \
libx11-dev \
pkg-config && \
mkdir -p /code
ADD . /code
WORKDIR /code
RUN cargo build --release && cargo run --release && \
cp target/release/nu /usr/local/bin
ENTRYPOINT ["nu"]