magicudapps commited on
Commit
161c044
·
1 Parent(s): 587bde8

chore: update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -4,8 +4,13 @@ RUN useradd -m -u 1000 user
4
  USER user
5
  ENV HOME=/home/user \
6
  PATH=/home/user/.local/bin:$PATH
 
 
 
 
7
  WORKDIR $HOME/app
8
 
 
9
  RUN --mount=type=secret,id=GITLAB_CREDENTIALS,mode=0444,required=true \
10
  git clone "https://$(cat /run/secrets/GITLAB_CREDENTIALS)@gitlab.com/bookingcare/search.git" -b dev .
11
  RUN python -m pip install --upgrade pip
 
4
  USER user
5
  ENV HOME=/home/user \
6
  PATH=/home/user/.local/bin:$PATH
7
+ ENV PYTHONDONTWRITEBYTECODE=1
8
+ ENV PYTHONUNBUFFERED=1
9
+ ENV PIPENV_VENV_IN_PROJECT=1
10
+
11
  WORKDIR $HOME/app
12
 
13
+ RUN apt update && apt install -y default-jdk
14
  RUN --mount=type=secret,id=GITLAB_CREDENTIALS,mode=0444,required=true \
15
  git clone "https://$(cat /run/secrets/GITLAB_CREDENTIALS)@gitlab.com/bookingcare/search.git" -b dev .
16
  RUN python -m pip install --upgrade pip