summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 88f2be572fbfd51b55e81e3356756f11a77ac9e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.10-alpine AS build

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

FROM python:3.10-alpine

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"]