forked from muesli-hd/muesli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (18 loc) · 825 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
FROM ubuntu:xenial
RUN mkdir -p /opt/muesli4
WORKDIR /opt/muesli4
ENV PYTHONUNBUFFERED=1
ENV MUESLI_PATH=/opt/muesli4
EXPOSE 8080
CMD ["/opt/muesli4/docker-serve.sh"]
RUN useradd muesli
RUN apt-get update && apt-get install -y python3.5 python3.5-dev lp-solve postgresql-server-dev-9.5 wget python3-pip libjs-prototype libjs-select2.js libjs-jquery-fancybox locales && rm -rf /var/lib/apt/lists/*
RUN locale-gen de_DE.UTF-8
ENV LANG de_DE.UTF-8
ENV LANGUAGE de_DE:de
ENV LC_ALL de_DE.UTF-8
RUN wget https://www.mathi.uni-heidelberg.de/~jvisintini/lp_solve -O /usr/bin/lp_solve
RUN wget https://www.mathi.uni-heidelberg.de/~jvisintini/libxli_DIMACS.so -O /usr/lib/lp_solve/libxli_DIMACS.so
RUN pip3 install --upgrade pip
COPY --chown=muesli:muesli ./requirements.txt /opt/muesli4/
RUN pip3 install -r requirements.txt