Skip to content

Commit

Permalink
Migrate from python 3.6 to python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Lujeni committed Jun 4, 2020
1 parent 7f2b355 commit d43be96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
FROM python:3.6 as build-stage
FROM python:3.7-buster

RUN mkdir /install
WORKDIR /install
COPY requirements.txt /requirements.txt
RUN pip install --install-option="--prefix=/install" -r /requirements.txt
RUN pip install -r /requirements.txt

RUN groupadd --gid 1000 appuser \
&& useradd --uid 1000 --gid appuser --shell /bin/bash --create-home appuser

FROM python:3.6-alpine

RUN addgroup -g 1000 appuser
RUN adduser -D -u 1000 -G appuser appuser
USER appuser
RUN mkdir -p ~/.kube
COPY --from=build-stage /install /usr/local
COPY gitlab2rbac.py .

ENTRYPOINT python gitlab2rbac.py
9 changes: 5 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
PyJWT==1.7.1
PyYAML==4.2b1
Unidecode==1.1.1
adal==1.2.0
asn1crypto==0.24.0
cachetools==3.0.0
Expand All @@ -9,16 +12,14 @@ google-auth==1.6.2
idna==2.8
kubernetes==8.0.1
oauthlib==2.1.0
pyasn1==0.4.5
pyasn1-modules==0.2.3
pyasn1==0.4.5
pycparser==2.19
PyJWT==1.7.1
python-dateutil==2.7.5
python-gitlab==1.7.0
python-slugify==2.0.1
PyYAML==4.2b1
requests==2.21.0
requests-oauthlib==1.0.0
requests==2.21.0
rsa==4.0
six==1.12.0
urllib3==1.24.2
Expand Down

0 comments on commit d43be96

Please sign in to comment.