-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
23 lines (23 loc) · 863 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
FROM pypy:3
ENV TERM linux
ENV DEBIAN_FRONTEND noninteractive
EXPOSE 5000
RUN mkdir -p /reynir/logs
COPY conf/bin /reynir/bin
COPY docker_requirements.txt /reynir/docker_requirements.txt
RUN apt-get update
RUN apt-get install dialog apt-utils locales cron curl libgeos-dev git -y
COPY src /reynir/src
WORKDIR /reynir/src/Greynir
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt-get install git-lfs=2.6.1 -y
RUN sed -i -e 's/# is_IS.UTF-8 UTF-8/is_IS.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
ENV LANG is_IS.UTF-8
ENV LC_ALL is_IS.UTF-8
ENV LANGUAGE is_IS:is
ENV GREYNIR_DB_HOST greynir.is
ENV REYNIR_DIR /reynir/src/Greynir
RUN update-locale
RUN dpkg-reconfigure locales
RUN pip install --upgrade pip && pip install -r requirements.txt && pip install -r ../../docker_requirements.txt
CMD /reynir/bin/start.sh