summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 8d8755b74e0126674091190be14bf2e10b32662f (plain)
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"]