Commit 5e78986e authored by Furkan Mustafa's avatar Furkan Mustafa

Dockerfile and docker-compose for dev environment improved

parent e3c90320
......@@ -5,4 +5,8 @@ pip-delete-this-directory.txt
FROM python:3-jessie
LABEL maintainer=""
FROM python:3.6-jessie
LABEL maintainer=""
RUN apt-get update && apt-get -y install \
--no-install-recommends \
python3-pip git curl make libsqlite3-dev
RUN mkdir -p /src
RUN mkdir -p /opt/beiran/beiran
# Install bats
ADD beiran/requirements.txt /src/r-lib.txt
RUN pip3 install -r /src/r-lib.txt
ADD beiran/requirements.txt /opt/beiran/r-lib.txt
RUN pip install -r /opt/beiran/r-lib.txt
ADD beiran_cli/requirements.txt /src/r-cli.txt
RUN pip3 install -r /src/r-cli.txt
ADD beiran_cli/requirements.txt /opt/beiran/r-cli.txt
RUN pip install -r /opt/beiran/r-cli.txt
ADD beirand/requirements.txt /src/r-daemon.txt
RUN pip3 install -r /src/r-daemon.txt
ADD beirand/requirements.txt /opt/beiran/r-daemon.txt
RUN pip install -r /opt/beiran/r-daemon.txt
ADD [ "beirand/beirand", "/src/beirand" ]
ADD [ "beiran", "/src/beiran"]
ADD [ "beirand/beirand", "/opt/beiran/beirand" ]
ADD [ "beiran", "/opt/beiran/beiran" ]
ADD [ "beiran_cli", "/opt/beiran/beiran_cli" ]
ENV PYTHONPATH=/src/beirand:/src
WORKDIR /src/beirand
ENV PYTHONPATH=/opt/beiran/beirand:/opt/beiran
VOLUME /var/lib/beiran
VOLUME /etc/beiran
CMD [ "python3", "/src/beirand/" ]
CMD [ "python3", "-m", "beirand" ]
......@@ -8,8 +8,9 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker:/var/lib/docker
- .:/src
command: python3.6 -u beirand/
- ./beiran:/opt/beiran/beiran:ro
- ./beiran_cli:/opt/beiran/beiran_cli:ro
- ./beirand/beirand:/opt/beiran/beirand:ro
network_mode: host
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment