forked from brianp/muxed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnix-nightly.dockerfile
35 lines (27 loc) · 923 Bytes
/
nix-nightly.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM rustlang/rust:nightly
ENV TMUX_VERSION 3.1
WORKDIR /usr/src
# This is a dummy build to get the dependencies cached
COPY . .
RUN cargo fetch --target x86_64-unknown-linux-gnu
RUN rm -rf ./*
RUN apt-get update && \
apt-get install -y libevent-dev \
locales \
bison \
byacc && \
apt-get remove tmux
RUN git clone https://github.com/tmux/tmux.git /opt/tmux && \
cd /opt/tmux && \
git checkout $TMUX_VERSION && \
sh autogen.sh && \
./configure --prefix=/opt/tmux && make && make install
ENV PATH $PATH:/opt/tmux/bin
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN rustup component add rustfmt
RUN rustup component add clippy --toolchain=nightly || cargo install --git https://github.com/rust-lang/rust-clippy/ --force clippy
RUN cargo install clog-cli