-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (27 loc) · 993 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 docker.io/fedora:30
LABEL version="0.1"
LABEL maintainer="[email protected]"
# Install RPMS dependencies
RUN dnf update -y && dnf clean all
RUN dnf install python3 python3-devel wget curl tar unzip\
gcc gcc-c++ redhat-rpm-config ansible \
python3-virtualenv git postgresql-devel mysql-devel \
sqlite-devel -y && dnf clean all
RUN mkdir -p /opt/morpcc/ && mkdir -p /usr/share/nltk_data
WORKDIR /opt/morpcc/
COPY buildout /opt/morpcc/buildout
COPY build.sh buildout-docker.cfg \
buildout.cfg bootstrap-buildout.py /opt/morpcc/
WORKDIR /opt/morpcc/
RUN /usr/bin/python3 bootstrap-buildout.py
LABEL rev="2020030403"
RUN bash ./build.sh -c buildout-docker.cfg && rm -rf downloads/*
EXPOSE 5000
ENV MORP_WORKDIR=/instance/
ENV ACCESS_LOG=/instance/access.log
ENV ERROR_LOG=/instance/errors.log
ENV PYTHONUNBUFFERED=1
ENV PATH="/opt/morpcc/bin:${PATH}"
VOLUME /instance/
WORKDIR /instance/
ENTRYPOINT ["/opt/morpcc/bin/morpfw", "-s", "/instance/settings.yml"]