GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — mreg/Dockerfile at master · unioslo/mreg Expand file tree/ Copy pathDockerfileMore file actions 55 lines (46 loc) · 1.78 KB / Copy pathDockerfileFile metadata and controls55 lines (46 loc) · 1.78 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 # build stage FROM python:3.14-alpine AS builder WORKDIR /app ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 RUN apk update \ && apk add --virtual build-deps gcc python3-dev openldap-dev musl-dev git # Copy entire build context to the image. # In order to build the project, we need both the .git directory and project files. # However, we cannot mix files and directories in the COPY command, because # COPY will unpack the contents of source directories into the target directory, # and we need to keep the .git directory intact. # The workaround is to copy everything, but limit it with .dockerignore. COPY --from=ghcr.io/astral-sh/uv:0.13.7 /uv /uvx /bin/ COPY . . # Tracked files excluded by .dockerignore look deleted to git, which makes # setuptools_scm report a dirty version. Hide them from git. RUN set -o pipefail \ && git ls-files --cached --ignored --exclude-from=.dockerignore -z \ | xargs -0 -r git update-index --skip-worktree # Build and install dependencies RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --locked --no-editable --no-dev ENTRYPOINT [ "/bin/sh" ] # final stage FROM python:3.14-alpine EXPOSE 8000 WORKDIR /app # Don't allow uv to download anything ENV UV_OFFLINE=1 # Use the copied virtual environment for direct Python commands too ENV PATH="/app/.venv/bin:$PATH" # Copy over venv with all installed dependencies COPY --from=builder /app/.venv /app/.venv # Copy over application files COPY entrypoint* manage.py /app/ COPY mreg /app/mreg/ COPY mregsite /app/mregsite/ COPY hostpolicy /app/hostpolicy/ COPY --from=ghcr.io/astral-sh/uv:0.13.7 /uv /uvx /bin/ RUN apk update && apk upgrade \ && apk add libldap vim findutils \ && rm -rf /var/cache/apk/* \ && mkdir -p /app/logs \ && chmod a+x /app/entrypoint* CMD /app/entrypoint.sh |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |