Arcader7171 commited on
Commit
fcaec69
·
verified ·
1 Parent(s): 4db9a03

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -3,11 +3,15 @@
3
 
4
  FROM python:3.9
5
 
 
 
6
  RUN useradd -m -u 1000 user
7
  USER user
8
  ENV PATH="/home/user/.local/bin:$PATH"
9
 
10
  WORKDIR /app
 
 
11
 
12
  COPY --chown=user ./requirements.txt requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
3
 
4
  FROM python:3.9
5
 
6
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
7
+
8
  RUN useradd -m -u 1000 user
9
  USER user
10
  ENV PATH="/home/user/.local/bin:$PATH"
11
 
12
  WORKDIR /app
13
+ RUN --mount=type=secret,id=GITLAB_ACCESS_TOKEN,mode=0444,required=true \
14
+ git clone https://oauth2:${GITLAB_ACCESS_TOKEN}@gitlab.com/nevronline/interstate.git
15
 
16
  COPY --chown=user ./requirements.txt requirements.txt
17
  RUN pip install --no-cache-dir --upgrade -r requirements.txt