Commit 73190885 authored by carlosribas's avatar carlosribas
Browse files

Allow to clone a specific branch

parent 0b1f8bc4
......@@ -21,6 +21,7 @@ RUN apt-get update && apt-get install -y \
ENV RNACENTRAL_HOME=/srv/rnacentral
ENV RNACENTRAL_LOCAL=$RNACENTRAL_HOME/local
ENV SUPERVISOR_CONF_DIR=${SUPERVISOR_CONF_DIR:-"/srv/rnacentral/supervisor"}
ARG RNACENTRAL_BRANCH
# Create folders. Install Infernal and node.js
RUN \
......@@ -44,7 +45,8 @@ USER rnacentral
# Download RNAcentral, install requirements and node.js dependencies
RUN \
cd $RNACENTRAL_HOME && \
git clone https://github.com/RNAcentral/rnacentral-webcode.git && \
BRANCH="${RNACENTRAL_BRANCH:-master}" && \
git clone -b "$BRANCH" https://github.com/RNAcentral/rnacentral-webcode.git && \
pip install -r $RNACENTRAL_HOME/rnacentral-webcode/rnacentral/requirements.txt && \
pip install gunicorn && \
cd $RNACENTRAL_HOME/rnacentral-webcode/rnacentral/portal/static && npm install --only=production
......
......@@ -5,6 +5,8 @@ services:
rnacentral:
build:
context: .
args:
- RNACENTRAL_BRANCH=${RNACENTRAL_BRANCH}
dockerfile: Dockerfile-development
environment:
- DB_HOST=${DB_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