mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-22 15:35:03 +00:00
Frontend Docker Deployment
This commit is contained in:
parent
5dc73ab773
commit
734c871666
12
client-tauri/Dockerfile
Normal file
12
client-tauri/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
# Use an existing image as a base
|
||||
FROM node:22.2.0-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm i -g serve
|
||||
|
||||
COPY ./dist ./dist
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD [ "serve", "-s", "dist" ]
|
@ -1,7 +1,3 @@
|
||||
# Tauri + React + Typescript
|
||||
# Stirling-PDF frontend
|
||||
|
||||
This template should help get you started developing with Tauri, React and Typescript in Vite.
|
||||
|
||||
## Recommended IDE Setup
|
||||
|
||||
- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)
|
||||
Tauri + Vite + React + Typescript
|
@ -4,12 +4,13 @@
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc && vite build",
|
||||
"preview (previously built files)": "vite preview",
|
||||
"tauri-dev (currently broken)": "tauri dev",
|
||||
"tauri-build-debug": "tauri build --debug",
|
||||
"tauri-build": "tauri build"
|
||||
"vite:dev": "vite",
|
||||
"vite:build": "tsc && vite build",
|
||||
"vite:preview-build": "vite preview",
|
||||
"vite:dockerize-build": "docker build . -t stirling-pdf:latest",
|
||||
"tauri:dev (currently broken)": "tauri dev",
|
||||
"tauri:build-debug": "tauri build --debug",
|
||||
"tauri:build": "tauri build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@stirling-pdf/shared-operations": "^0.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "StirlingPDF"
|
||||
version = "0.0.1"
|
||||
# version = "2.0.0"
|
||||
description = "Selfhosted PDF processing"
|
||||
authors = ["LaserKaspar, SaudF"]
|
||||
license = ""
|
||||
|
@ -8,7 +8,7 @@
|
||||
},
|
||||
"package": {
|
||||
"productName": "StirlingPDF",
|
||||
"version": "0.0.0"
|
||||
"version": "2.0.0"
|
||||
},
|
||||
"tauri": {
|
||||
"allowlist": {
|
||||
|
@ -20,6 +20,7 @@ export class PdfFile {
|
||||
private representationType: RepresentationType;
|
||||
originalFilename: string;
|
||||
filename: string;
|
||||
// TODO: Option to disable Compression when converting from PDFLibDoc to uin8Array. (https://github.com/Hopding/pdf-lib/issues/1183#issuecomment-1685078941)
|
||||
|
||||
get uint8Array() : Promise<Uint8Array> {
|
||||
switch (this.representationType) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user