diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..ba58b188 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,33 @@ +# Dependencies +node_modules +**/node_modules + +# Rust build artifacts +target +**/target + +# Git +.git +.gitignore + +# Build outputs +dist +**/dist +.next +**/.next +out +**/out + +# IDE +.idea +.vscode +*.swp + +# OS files +.DS_Store +Thumbs.db + +# Logs +*.log +npm-debug.log* + diff --git a/Dockerfile b/Dockerfile index cd5d9179..f8d799af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,31 +5,13 @@ ENV PATH="${PATH}:${PNPM_HOME}" RUN npm install --global pnpm -# Install necessary packages -RUN apt update -y && apt install -y --no-install-recommends \ - libwebkit2gtk-4.1-dev \ - build-essential \ - curl \ - wget \ - file \ - libxdo-dev \ - libssl-dev \ - libayatana-appindicator3-dev \ - librsvg2-dev \ - ca-certificates \ - && apt-get clean && rm -rf /var/lib/apt/lists/* - -# Install Rust and Cargo -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y -ENV PATH="/root/.cargo/bin:${PATH}" - COPY . /app WORKDIR /app RUN pnpm install -RUN pnpm --filter @readest/readest-app setup-pdfjs +RUN pnpm --filter @readest/readest-app setup-vendors WORKDIR /app/apps/readest-app