forked from RedHatCRE/cibyl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (26 loc) · 770 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
FROM python:3.6.15
# Outside the container
ARG CIBYL_ROOT=.
ARG CONFIG_FILE=$CIBYL_ROOT/samples/sample-config.yaml
# Inside the container
ARG INSTALL_PATH=/app
# == Install APP ==
WORKDIR $INSTALL_PATH
# Prepare virtual environment
ENV VIRTUAL_ENV=./venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install wheel
# Install Cibyl
COPY $CIBYL_ROOT/.git ./.git
COPY $CIBYL_ROOT/README.rst .
COPY $CIBYL_ROOT/setup.py .
COPY $CIBYL_ROOT/setup.cfg .
COPY $CIBYL_ROOT/requirements.txt .
COPY $CIBYL_ROOT/kernel ./kernel
COPY $CIBYL_ROOT/tripleo ./tripleo
COPY $CIBYL_ROOT/cibyl ./cibyl
RUN python3 -m pip install .
# Install configuration file
COPY $CONFIG_FILE /etc/cibyl/cibyl.yaml