Skip to content

Automate building a docker image #36

@rgbkrk

Description

@rgbkrk

Write a simple docker file like this and get it connected to CI to start pushing out and running.

FROM denoland/deno:latest

# Create working directory
WORKDIR /app

# Set default environment variables
ENV LIVESTORE_SYNC_URL=wss://anode-docworker.rgbkrk.workers.dev/api

# Cache the JSR package to improve startup time
RUN deno cache jsr:@runt/pyodide-runtime-agent@0.4.1

# Create cache directory for Pyodide packages
RUN mkdir -p /app/.runt/pyodide-cache

# Set permissions for cache directory
RUN chmod 755 /app/.runt/pyodide-cache

# Set HOME to app directory so cache utilities work correctly
ENV HOME=/app

# Run the pyodide runtime agent
CMD ["deno", "run", "--allow-all", "jsr:@runt/pyodide-runtime-agent@0.4.1"]

Note that anyone running this must set -e AUTH_TOKEN=... and their notebook id -e NOTEBOOK_ID=...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions