-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle missing gitlab credentials (#692)
- Loading branch information
Showing
9 changed files
with
929 additions
and
1,205 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
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,20 +1,22 @@ | ||
FROM python:3.7-slim | ||
|
||
RUN pip install --upgrade pip==22.1.2 && \ | ||
FROM python:3.11-slim-bookworm as builder | ||
WORKDIR /code | ||
RUN pip install --upgrade pip && \ | ||
pip install poetry && \ | ||
addgroup renku --gid 1000 && \ | ||
adduser renku --uid 1000 --gid 1000 | ||
virtualenv .venv | ||
COPY pyproject.toml poetry.lock ./ | ||
RUN poetry install --without dev --no-root | ||
COPY app ./app | ||
RUN poetry install --without dev | ||
|
||
COPY pyproject.toml poetry.lock /code/ | ||
FROM python:3.11-slim-bookworm | ||
WORKDIR /code | ||
|
||
RUN poetry config virtualenvs.create false && \ | ||
poetry install | ||
|
||
COPY ./ /code | ||
|
||
ENV TINI_VERSION v0.19.0 | ||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini | ||
RUN chmod a+x /tini && \ | ||
addgroup renku --gid 1000 && \ | ||
adduser renku --uid 1000 --gid 1000 | ||
COPY --chown=1000:1000 --from=builder /code/.venv .venv | ||
COPY --chown=1000:1000 --from=builder /code/app app | ||
USER 1000:1000 | ||
|
||
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app", "-k", "gevent"] | ||
|
||
ENTRYPOINT [ "/tini", "-g", "--", "./.venv/bin/gunicorn", "-b", "0.0.0.0:5000", "app:app" ] | ||
EXPOSE 5000 |
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
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
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
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
Oops, something went wrong.