1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/registry-cli/Dockerfile
2021-12-14 16:50:55 +08:00

22 lines
659 B
Docker

#
# Dockerfile for registry-cli
#
FROM python:3-slim-bullseye AS build
WORKDIR /app
ADD https://github.com/andrey-pohilko/registry-cli/raw/master/registry.py .
ADD https://github.com/andrey-pohilko/registry-cli/raw/master/requirements-ci.txt .
RUN set -xe \
&& apt update \
&& apt install -y binutils \
&& pip install --no-cache-dir pyinstaller \
&& pip install --no-cache-dir -r requirements-ci.txt \
&& pyinstaller --onefile --name=registry-cli registry.py \
&& rm -rf /var/lib/apt/lists/*
FROM debian:bullseye
MAINTAINER EasyPi Software Foundation
COPY --from=build /app/dist/registry-cli /usr/local/bin/
ENTRYPOINT ["registry-cli"]
CMD ["--help"]