Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

14-polars-translation #18

Merged
merged 9 commits into from
Oct 10, 2024
Prev Previous commit
Next Next commit
Creating python environment from git repo requirements
  • Loading branch information
oislen committed Oct 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 847f9454ddaa29a0d0e9120db3a51aa9825e64a9
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ ENV GIT_BRANCH=${GIT_BRANCH}

# install required software and programmes for development environment
RUN apt-get update
RUN apt-get install -y apt-utils vim curl wget unzip git python3 python3-pip tree htop
RUN apt-get install -y apt-utils vim curl wget unzip git tree htop

# set up home environment
RUN useradd ${user}
@@ -20,11 +20,10 @@ RUN mkdir -p /home/${user} && chown -R ${user}: /home/${user}
RUN git clone https://github.com/oislen/IrishClimateDashboard.git --branch ${GIT_BRANCH} /home/ubuntu/IrishClimateDashboard

# install required python packages
COPY requirements.txt /tmp/
RUN apt-get install -y python3 python3-venv python3-pip
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN /opt/venv/bin/python3 -m pip install -r /tmp/requirements.txt
RUN /opt/venv/bin/python3 -m pip install -r /home/ubuntu/IrishClimateDashboard/requirements.txt

WORKDIR /home/${user}/IrishClimateDashboard
CMD ["bokeh", "serve","scripts/bokeh_dash_app.py"]