Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…dthedocs.io/en/latest/dummies-dev-setup.html, allow to switch between branches in terminal of given pod
  • Loading branch information
roman-pis-compote committed Jun 15, 2020
1 parent a6ae0cb commit 9d29733
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ RUN useradd -c 'Container user' --user-group --uid ${APP_USER_ID} --home-dir ${A
RUN apt-get update -y
RUN apt-get install -y wget gnupg bzip2

# Add in the frontend code
# By default this is hosted on the xchem project's master branch
# but it can be redirected with a couple of build-args.
ARG FE_GIT_PROJECT=xchem
ARG FE_GIT_PROJECT_BRANCH=master
RUN git clone --single-branch --branch ${FE_GIT_PROJECT_BRANCH} \
https://github.com/${FE_GIT_PROJECT}/fragalysis-frontend ${APP_ROOT}/frontend

# Install yarn (instead of npm)
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
Expand All @@ -24,6 +16,14 @@ RUN apt-get update -y && apt-get install -y yarn
# Install nodejs
RUN apt-get install -y nodejs

# Add in the frontend code
# By default this is hosted on the xchem project's master branch
# but it can be redirected with a couple of build-args.
ARG FE_NAMESPACE=xchem
ARG FE_BRANCH=master
RUN git clone https://github.com/${FE_NAMESPACE}/fragalysis-frontend ${APP_ROOT}/frontend
RUN cd ${APP_ROOT}/frontend && git checkout ${FE_BRANCH}

# Now build the code
RUN cd ${APP_ROOT}/frontend && yarn install
RUN cd ${APP_ROOT}/frontend && yarn run build
Expand Down

0 comments on commit 9d29733

Please sign in to comment.