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 — codinit-dev/Dockerfile at main · TheoSym/codinit-dev Expand file tree/ Copy pathDockerfileMore file actions 66 lines (50 loc) · 1.86 KB / Copy pathDockerfileFile metadata and controls66 lines (50 loc) · 1.86 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 56 57 58 59 60 61 62 63 64 65 66 ARG BASE=node:20.18.0 FROM ${BASE} AS base WORKDIR /app # Install dependencies (this step is cached as long as the dependencies don't change) COPY package.json pnpm-lock.yaml ./ #RUN npm install -g corepack@latest #RUN corepack enable pnpm && pnpm install RUN npm install -g pnpm && pnpm install # Copy the rest of your app's source code COPY . . # Expose the port the app runs on EXPOSE 5173 # Production image FROM base AS codinit-dev-production # Define non-sensitive configuration variables ARG OLLAMA_API_BASE_URL ARG TOGETHER_API_BASE_URL ARG VITE_LOG_LEVEL=debug ARG DEFAULT_NUM_CTX # Set non-sensitive environment variables # NOTE: API keys should be passed at runtime using -e flags or --env-file # Example: docker run -e OPENAI_API_KEY=sk-... or docker run --env-file .env ENV WRANGLER_SEND_METRICS=false \ OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL} \ TOGETHER_API_BASE_URL=${TOGETHER_API_BASE_URL} \ VITE_LOG_LEVEL=${VITE_LOG_LEVEL} \ DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX} \ RUNNING_IN_DOCKER=true # Pre-configure wrangler to disable metrics RUN mkdir -p /root/.config/.wrangler && \ echo '{"enabled":false}' > /root/.config/.wrangler/metrics.json RUN pnpm run build CMD [ "pnpm", "run", "dockerstart"] # Development image FROM base AS codinit-dev-development # Define non-sensitive configuration variables ARG OLLAMA_API_BASE_URL ARG TOGETHER_API_BASE_URL ARG VITE_LOG_LEVEL=debug ARG DEFAULT_NUM_CTX # Set non-sensitive environment variables # NOTE: API keys should be passed at runtime using -e flags or --env-file # Example: docker run -e OPENAI_API_KEY=sk-... or docker run --env-file .env ENV OLLAMA_API_BASE_URL=${OLLAMA_API_BASE_URL} \ TOGETHER_API_BASE_URL=${TOGETHER_API_BASE_URL} \ VITE_LOG_LEVEL=${VITE_LOG_LEVEL} \ DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX} \ RUNNING_IN_DOCKER=true RUN mkdir -p ${WORKDIR}/run CMD pnpm run dev --host |
| You are visitor 01402520 — 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. |