mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-07-09 16:09:14 +00:00
Some checks failed
Build Docker Image / build (linux/amd64, map[file:Dockerfile name:default short_tag:latest suffix:]) (push) Has been cancelled
Build Docker Image / build (linux/amd64, map[file:Dockerfile.alpine name:alpine short_tag:alpine suffix:-alpine]) (push) Has been cancelled
Build Docker Image / build (linux/amd64, map[file:Dockerfile.slim name:slim short_tag:slim suffix:-slim]) (push) Has been cancelled
Build Docker Image / build (linux/arm64, map[file:Dockerfile name:default short_tag:latest suffix:]) (push) Has been cancelled
Build Docker Image / build (linux/arm64, map[file:Dockerfile.alpine name:alpine short_tag:alpine suffix:-alpine]) (push) Has been cancelled
Build Docker Image / build (linux/arm64, map[file:Dockerfile.slim name:slim short_tag:slim suffix:-slim]) (push) Has been cancelled
Build Docker Image / merge (map[name:alpine short_tag:alpine suffix:-alpine]) (push) Has been cancelled
Build Docker Image / merge (map[name:default short_tag:latest suffix:]) (push) Has been cancelled
Build Docker Image / merge (map[name:slim short_tag:slim suffix:-slim]) (push) Has been cancelled
54 lines
1.2 KiB
Text
54 lines
1.2 KiB
Text
FROM python:3.12.13-slim AS builder
|
|
|
|
WORKDIR /src
|
|
|
|
COPY pyproject.toml README.md uv.lock* ./
|
|
COPY open_terminal/ open_terminal/
|
|
|
|
RUN pip install --no-cache-dir --prefix=/install .
|
|
|
|
|
|
FROM python:3.12.13-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV HOME=/home/user
|
|
ENV SHELL=/bin/bash
|
|
ENV USER=user
|
|
ENV XDG_CONFIG_HOME=/home/user/.config
|
|
ENV XDG_STATE_HOME=/home/user/.local/state
|
|
ENV XDG_CACHE_HOME=/home/user/.cache
|
|
ENV PATH="/home/user/.local/bin:${PATH}"
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
bash \
|
|
ca-certificates \
|
|
curl \
|
|
git \
|
|
jq \
|
|
less \
|
|
procps \
|
|
tini \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=builder /install /usr/local
|
|
|
|
WORKDIR /app
|
|
COPY pyproject.toml README.md ./
|
|
COPY open_terminal/ open_terminal/
|
|
COPY entrypoint-openshift.sh /app/entrypoint-openshift.sh
|
|
|
|
RUN pip install --no-cache-dir --no-deps . \
|
|
&& mkdir -p /home/user/.local/bin /home/user/.config /home/user/.local/state /home/user/.cache \
|
|
&& chgrp -R 0 /home/user /app \
|
|
&& chmod -R g=u /home/user /app \
|
|
&& chmod +x /app/entrypoint-openshift.sh
|
|
|
|
WORKDIR /home/user
|
|
|
|
EXPOSE 8000
|
|
|
|
USER 1001
|
|
|
|
ENTRYPOINT ["/usr/bin/tini", "--", "/app/entrypoint-openshift.sh"]
|
|
CMD ["run"]
|