forked from LLewark/khoca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (27 loc) · 1.29 KB
/
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
################################################################################
# HOWTO use this file for local builds #
################################################################################
# To build Khoca, run this command from your khoca/ directory: #
# $ docker build -f Dockerfile --tag khoca:<your_tag> . #
# To run Khoca: #
# $ docker run -it khoca:<your_tag> #
################################################################################
FROM ubuntu:latest
LABEL maintainer="Sebastian Oehms <seb.oehms@gmail.com>"
# Set sane defaults for common environment variables.
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
ENV SHELL /bin/bash
# install prerequisites
RUN apt-get -qq update \
&& apt-get -qq install -y --no-install-recommends git g++ make libgmp-dev pari-gp2c python3 python3-dev python3-pip \
&& apt-get -qq clean \
&& rm -r /var/lib/apt/lists/* \
&& pip install cython \
&& git clone https://github.com/soehms/khoca.git \
&& cd khoca/ \
&& make
WORKDIR "/khoca/"
COPY ./docker/entrypoint.sh /usr/local/bin/khoca-entrypoint
ENTRYPOINT ["/usr/local/bin/khoca-entrypoint"]
CMD ["bash"]