2019-08-25 20:16:02 +00:00
|
|
|
FROM rust:1.37-slim
|
|
|
|
|
2019-08-29 15:21:49 +00:00
|
|
|
# docker build -f docker/Dockerfile.nu-base -t nushell/nu-base .
|
2019-08-27 21:58:45 +00:00
|
|
|
# docker run -it nushell/nu-base
|
2019-08-25 20:16:02 +00:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update && apt-get install -y libssl-dev \
|
|
|
|
libxcb-composite0-dev \
|
|
|
|
libx11-dev \
|
2019-08-29 15:21:49 +00:00
|
|
|
pkg-config
|
|
|
|
|
|
|
|
RUN USER=root cargo new --bin /code
|
2019-08-25 20:16:02 +00:00
|
|
|
|
|
|
|
WORKDIR /code
|
2019-08-29 15:21:49 +00:00
|
|
|
ADD . /code
|
|
|
|
RUN cargo build --release && cargo run --release
|
|
|
|
RUN cp target/release/nu /usr/local/bin
|
2019-08-25 20:16:02 +00:00
|
|
|
ENTRYPOINT ["nu"]
|