chore: add devcontainer
This commit is contained in:
parent
78bac9c9ca
commit
d984891791
90 changed files with 8511 additions and 8368 deletions
86
.devcontainer/Dockerfile
Normal file
86
.devcontainer/Dockerfile
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
# Development Dockerfile for ConvertX
|
||||
FROM debian:trixie-slim
|
||||
|
||||
LABEL org.opencontainers.image.source="https://github.com/C4illin/ConvertX"
|
||||
LABEL description="Development environment for ConvertX with all tools and dependencies"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies and development tools
|
||||
RUN apt-get update && apt-get install -y \
|
||||
# Basic tools
|
||||
curl \
|
||||
unzip \
|
||||
git \
|
||||
ca-certificates \
|
||||
# Build tools
|
||||
build-essential \
|
||||
# ConvertX runtime dependencies
|
||||
assimp-utils \
|
||||
calibre \
|
||||
dasel \
|
||||
dcraw \
|
||||
dvisvgm \
|
||||
ffmpeg \
|
||||
ghostscript \
|
||||
graphicsmagick \
|
||||
imagemagick-7.q16 \
|
||||
inkscape \
|
||||
latexmk \
|
||||
libheif-examples \
|
||||
libjxl-tools \
|
||||
libreoffice \
|
||||
libva2 \
|
||||
libvips-tools \
|
||||
libemail-outlook-message-perl \
|
||||
lmodern \
|
||||
mupdf-tools \
|
||||
pandoc \
|
||||
poppler-utils \
|
||||
potrace \
|
||||
python3-numpy \
|
||||
resvg \
|
||||
texlive \
|
||||
texlive-fonts-recommended \
|
||||
texlive-latex-extra \
|
||||
texlive-latex-recommended \
|
||||
texlive-xetex \
|
||||
--no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Bun (JavaScript runtime and package manager)
|
||||
RUN ARCH=$(uname -m) && \
|
||||
if [ "$ARCH" = "aarch64" ]; then \
|
||||
curl -fsSL -o bun-linux-aarch64.zip https://github.com/oven-sh/bun/releases/download/bun-v1.2.2/bun-linux-aarch64.zip; \
|
||||
else \
|
||||
curl -fsSL -o bun-linux-x64-baseline.zip https://github.com/oven-sh/bun/releases/download/bun-v1.2.2/bun-linux-x64-baseline.zip; \
|
||||
fi && \
|
||||
unzip -j bun-linux-*.zip -d /usr/local/bin && \
|
||||
rm bun-linux-*.zip && \
|
||||
chmod +x /usr/local/bin/bun
|
||||
|
||||
# Install VTracer binary for vector tracing
|
||||
RUN ARCH=$(uname -m) && \
|
||||
if [ "$ARCH" = "aarch64" ]; then \
|
||||
VTRACER_ASSET="vtracer-aarch64-unknown-linux-musl.tar.gz"; \
|
||||
else \
|
||||
VTRACER_ASSET="vtracer-x86_64-unknown-linux-musl.tar.gz"; \
|
||||
fi && \
|
||||
curl -L -o /tmp/vtracer.tar.gz "https://github.com/visioncortex/vtracer/releases/download/0.6.4/${VTRACER_ASSET}" && \
|
||||
tar -xzf /tmp/vtracer.tar.gz -C /tmp/ && \
|
||||
mv /tmp/vtracer /usr/local/bin/vtracer && \
|
||||
chmod +x /usr/local/bin/vtracer && \
|
||||
rm /tmp/vtracer.tar.gz
|
||||
|
||||
# Create data directory for development
|
||||
RUN mkdir -p data
|
||||
|
||||
# Set environment variables for development
|
||||
ENV NODE_ENV=development
|
||||
ENV QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox"
|
||||
|
||||
# Expose the development port
|
||||
EXPOSE 3000
|
||||
|
||||
# Default command for development
|
||||
CMD ["bun", "run", "dev"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue