1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/registry-cli/Dockerfile

22 lines
659 B
Docker
Raw Normal View History

2021-12-14 10:50:55 +02:00
#
# 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"]