a56aaea410
In case dragonflow is used as a base image for another docker image, and the WORKDIR is set to something other than /opt/dragonflow before running the container, the call to run_dragonflow.sh will fail as the reference is relative so it will not be found. Change-Id: If9f25f94520fd74ab14658cf63f43c940da7b2ea
22 lines
610 B
Docker
22 lines
610 B
Docker
FROM fedora:latest
|
|
|
|
RUN dnf install -y git python3-pip python3-psutil python3-devel \
|
|
"@C Development Tools and Libraries"
|
|
|
|
RUN alternatives --install /usr/bin/python python /usr/bin/python3 1
|
|
RUN alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
|
|
|
|
# Create config folder
|
|
ENV DRAGONFLOW_ETCDIR /etc/dragonflow
|
|
RUN mkdir -p $DRAGONFLOW_ETCDIR /opt/dragonflow /var/run/dragonflow
|
|
|
|
# Copy Dragonflow sources to the container
|
|
COPY . /opt/dragonflow/
|
|
|
|
# Install Dragonflow on the container
|
|
WORKDIR /opt/dragonflow
|
|
RUN pip install -e .
|
|
|
|
ENTRYPOINT ["/opt/dragonflow/tools/run_dragonflow.sh"]
|
|
|