Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinguy committed Jul 10, 2024
1 parent d62ef05 commit 4567dc6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docker/docker/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG DEBIAN_FRONTEND=noninteractive
FROM python:3.8-slim

ENV QC_SETTTINGS=/srv/betterscan/quantifiedcode/settings/default.yml
ENV QC_SETTTINGS=/srv/betterscan-ce/quantifiedcode/settings/default.yml

# Set timezone and environment variables
ENV CONTAINER_TIMEZONE=UTC
Expand All @@ -16,26 +16,26 @@ RUN apt-get update && apt-get install -y \

# Clone repositories and set up projects
RUN mkdir -p /srv && \
git clone https://github.com/tcosolutions/betterscan-ce /srv/betterscan && \
cd /srv/betterscan && \
git clone https://github.com/tcosolutions/betterscan-ce && \
cd /srv/betterscan-ce && \
pip install --upgrade pip && \
pip install pipenv && \
pipenv install --system --deploy
git clone -b checkmate3 https://github.com/tcosolutions/checkmate-ce /checkmate && \
cd /checkmate && \
git clone -b checkmate3 https://github.com/tcosolutions/checkmate-ce && \
cd /checkmate-ce && \
python setup.py install && \
cd /srv/betterscan/quantifiedcode/frontend && \
cd /srv/betterscan-ce/quantifiedcode/frontend && \
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - && \
apt-get install -y nodejs && \
npm install && \
chmod -R ugo+rw /srv/betterscan/quantifiedcode/frontend && \
chmod -R ugo+rw /srv/betterscan-ce/quantifiedcode/frontend && \
useradd -m user && \
sudo -u user make && \
cd /srv/betterscan/quantifiedcode/plugins/git && \
chmod -R ugo+rw /srv/betterscan/quantifiedcode/plugins/git && \
cd /srv/betterscan/quantifiedcode/plugins/git/frontend && \
cd /srv/betterscan-ce/quantifiedcode/plugins/git && \
chmod -R ugo+rw /srv/betterscan-ce/quantifiedcode/plugins/git && \
cd /srv/betterscan-ce/quantifiedcode/plugins/git/frontend && \
sudo -u user make && \


# Final working directory
WORKDIR /srv/betterscan/quantifiedcode/frontend
WORKDIR /srv/betterscan-ce/quantifiedcode/frontend

0 comments on commit 4567dc6

Please sign in to comment.