-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from python 3.6 to python 3.7
- Loading branch information
Showing
2 changed files
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters