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