-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (23 loc) · 943 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ARG HB_IMAGE_REGISTRY=docker.io
FROM ${HB_IMAGE_REGISTRY}/python:3.10.10-slim-bullseye as build
LABEL org.opencontainers.image.source=https://www.github.com/fresh2dev/tuiview
LABEL org.opencontainers.image.description="A TUI for every CLI"
LABEL org.opencontainers.image.licenses=GPLv3
RUN apt-get update && apt-get install --upgrade -y build-essential git
WORKDIR /app
ENV PYTHONUNBUFFERED=1
RUN python3 -m venv /app/venv
ENV PATH="/app/venv/bin:$PATH"
RUN python3 -m pip install --no-cache-dir --upgrade pip
COPY ./dist /dist
RUN find /dist -name "*.whl" -exec \
pip install --no-cache-dir \
--extra-index-url "https://codeberg.org/api/packages/Fresh2dev/pypi/simple" \
"{}" \; \
&& pip show "tuiview"
FROM ${HB_IMAGE_REGISTRY}/python:3.10.10-slim-bullseye
COPY --from=build /app/venv /app/venv
COPY --from=build /usr/local/bin /usr/local/bin
ENV PATH="/app/venv/bin:$PATH"
ENTRYPOINT ["tuiview"]
WORKDIR /workspace