Merge "Add Fedora based docker file creation"
This commit is contained in:
commit
56c7d93ef1
23
Dockerfile.fedora
Normal file
23
Dockerfile.fedora
Normal file
@ -0,0 +1,23 @@
|
||||
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
|
||||
|
||||
RUN mkdir -p /opt/dragonflow
|
||||
|
||||
# Copy Dragonflow sources to the container
|
||||
COPY . /opt/dragonflow/
|
||||
|
||||
# Install Dragonflow on the container
|
||||
WORKDIR /opt/dragonflow
|
||||
RUN pip install -e .
|
||||
|
||||
# Create config folder
|
||||
ENV DRAGONFLOW_ETCDIR /etc/dragonflow
|
||||
RUN mkdir -p $DRAGONFLOW_ETCDIR
|
||||
|
||||
ENTRYPOINT ["./tools/run_dragonflow.sh"]
|
||||
|
Loading…
Reference in New Issue
Block a user