forked from projectatomic/commissaire-http
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (25 loc) · 1.13 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
28
FROM fedora:latest
MAINTAINER Red Hat, Inc. <[email protected]>
ENV MHM_RELEASE v0.1.0-alpha
ENV PYTHONPATH /commissaire-http/src/
# Install required dependencies and commissaire-http
# NOTE: gcc, libffi-devel and openssl-devel are required to build some of the
# dependencies when using pip. redhat-rpm-config has at least one file
# referenced by one of the build dependencies.
RUN dnf update -y && \
dnf install -y --setopt=tsflags=nodocs redhat-rpm-config python3-pip python3-virtualenv git gcc libffi-devel openssl-devel && \
git clone https://github.com/projectatomic/commissaire-http.git && \
py3-virtualenv /environment && \
. /environment/bin/activate && \
cd commissaire-http && \
pip install -U pip && \
pip install -r requirements.txt && \
pip install git+https://github.com/projectatomic/commissaire.git && \
pip freeze > /installed-python-deps.txt && \
pip install -e . && \
dnf remove -y gcc git redhat-rpm-config libffi-devel && \
dnf clean all
EXPOSE 8000
WORKDIR /commissaire-http
RUN mkdir -p /etc/commissaire
CMD . /environment/bin/activate && commissaire-server