Commit 282070a5 authored by carlosribas's avatar carlosribas
Browse files

Add LOCAL_DEVELOPMENT environment variable

parent 3ec2d1ca
......@@ -20,6 +20,7 @@ ENV RNACENTRAL_HOME=/srv/rnacentral
ENV RNACENTRAL_LOCAL=$RNACENTRAL_HOME/local
ENV SUPERVISOR_CONF_DIR=${SUPERVISOR_CONF_DIR:-"/srv/rnacentral/supervisor"}
ARG RNACENTRAL_BRANCH
ARG LOCAL_DEVELOPMENT
# Create folders. Install Infernal and node.js
RUN \
......@@ -49,6 +50,13 @@ RUN \
cd $RNACENTRAL_HOME/rnacentral-webcode/rnacentral/portal/static && npm install --only=production && \
mkdir $RNACENTRAL_HOME/static
# Install packages for local development if needed
RUN \
LOCAL_DEV="${LOCAL_DEVELOPMENT:-false}" && \
if [ "$LOCAL_DEV" = "True" ] ; then \
pip3 install -r $RNACENTRAL_HOME/rnacentral-webcode/rnacentral/requirements_dev.txt \
fi
WORKDIR $RNACENTRAL_HOME/rnacentral-webcode
COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
......
......@@ -7,6 +7,7 @@ services:
context: .
args:
- RNACENTRAL_BRANCH=${RNACENTRAL_BRANCH}
- LOCAL_DEVELOPMENT=${LOCAL_DEVELOPMENT}
environment:
- DB_HOST=${DB_HOST}
- DB_NAME=${DB_NAME}
......
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