-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
41 lines (34 loc) · 826 Bytes
/
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
36
37
38
39
40
41
FROM rust:latest
LABEL maintainer="Oliver Wissett"
LABEL version="1.0"
LABEL description="FreeSASA docker image including Rust"
ARG DEBIAN_FRONTEND=noninteractive
# Install core packages
RUN apt-get update && apt-get install -y \
git \
make \
pkg-config \
build-essential \
autoconf \
libc++-dev \
libc++abi-dev \
libjson-c-dev \
libxml2-dev \
libxml2-utils \
check \
libclang-dev \
clang
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
RUN sudo adduser sasa sudo
USER sasa
ARG DEBIAN_FRONTEND=dialog
WORKDIR /home/sasa
RUN git clone https://github.com/mittinatten/freesasa.git
WORKDIR /home/sasa/freesasa
RUN git submodule init
RUN git submodule update
RUN autoreconf -i
RUN ./configure
RUN make
RUN make install