Files
api/plugin/Dockerfile
Eli Bosley ce61fee41c feat: improve local dev with install path (#1221)
- also add better watcher support

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added a helper that displays a local installation URL to simplify
setting up the plugin.

- **Chores**
- Updated service and container port configurations to ensure consistent
network connectivity (changed from 8080 to 5858).
- Refined container management to gracefully handle running instances
during startup.
- Improved build and installation routines for streamlined deployment
and enhanced reliability.
- Enhanced documentation to clarify installation and usage instructions
for better user experience.
- Introduced a new document outlining development workflows for better
guidance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---
- To see the specific tasks where the Asana app for GitHub is being
used, see below:
  - https://app.asana.com/0/0/1209561202532053
2025-03-17 09:44:10 -04:00

35 lines
639 B
Docker

FROM node:22-bookworm-slim AS plugin-builder
# Install build tools and dependencies
RUN apt-get update -y && apt-get install -y \
bash \
# Real PS Command (needed for some dependencies)
procps \
python3 \
libvirt-dev \
jq \
zstd \
git \
build-essential
RUN git config --global --add safe.directory /app
WORKDIR /app
COPY package.json ./
RUN corepack enable && pnpm install
# Install a simple http server
RUN npm install -g http-server
# Expose port 5858
EXPOSE 5858
COPY scripts/entrypoint.sh /start.sh
RUN chmod +x /start.sh
ENTRYPOINT [ "/start.sh" ]
CMD [ "pnpm", "run", "build:watcher" ]