File: Dockerfile

package info (click to toggle)
python-gitlab 1%3A3.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,216 kB
  • sloc: python: 21,319; makefile: 169; ruby: 27; javascript: 3
file content (17 lines) | stat: -rw-r--r-- 375 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
ARG PYTHON_FLAVOR=alpine
FROM python:3.11-${PYTHON_FLAVOR} AS build

WORKDIR /opt/python-gitlab
COPY . .
RUN python setup.py bdist_wheel

FROM python:3.11-${PYTHON_FLAVOR}

WORKDIR /opt/python-gitlab
COPY --from=build /opt/python-gitlab/dist dist/
RUN pip install PyYaml
RUN pip install $(find dist -name *.whl) && \
    rm -rf dist/

ENTRYPOINT ["gitlab"]
CMD ["--version"]