Skip to content
Merged
Show file tree
Hide file tree
Changes from 216 commits
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
3517218
feat!: start
Viren070 May 26, 2025
0aa6e2b
chore: update package-lock.json
Viren070 May 26, 2025
6db2e33
Merge remote-tracking branch 'origin/main' into rewrite
Viren070 May 27, 2025
96c233c
.
Viren070 May 28, 2025
6f3013c
fix: use correct input change handlers
Viren070 May 28, 2025
3bc2538
feat(frontend): services page, parse markdown, toast when duplicate a…
Viren070 May 28, 2025
384bdc3
feat(frontend): improve services page
Viren070 May 28, 2025
6aa1130
fix(frontend): try and make dnd better on touchscreen devices
Viren070 May 28, 2025
80aaad2
fix some stuff
Viren070 May 28, 2025
589e639
feat(frontend): update addon item layout for improved readability
Viren070 May 28, 2025
fea2675
fix: update service links
Viren070 May 28, 2025
f7b14cd
feat: implement config validation and addon error handling
Viren070 May 28, 2025
13a20a7
feat: changes
Viren070 May 28, 2025
61e21cd
feat: service cred env vars, better validation, handling of encrypted…
Viren070 May 29, 2025
84d53cb
feat(frontend): enhance nightly version display with clickable commit…
Viren070 May 29, 2025
3f32506
chore: update dockerfiles, compose.yaml and dont use prebuild
Viren070 May 29, 2025
27932a5
fix: remove debug logging in getServiceCredentialDefault
Viren070 May 29, 2025
0c5479c
feat: adjustments and proxy menu
Viren070 May 29, 2025
f3b4088
fix: update table schema
Viren070 May 29, 2025
e2834d5
fix: adapt queries for PostgreSQL and SQLite
Viren070 May 29, 2025
2ec06a6
fix(frontend): pass seeder info through to formatter
Viren070 May 29, 2025
6fa1b2b
feat: add built-in torrentio format
Viren070 May 29, 2025
77edb07
feat(frontend): use NumberInput component
Viren070 May 29, 2025
3e5d581
fix: use nullish coalescing for seeder info in formatter to allow val…
Viren070 May 29, 2025
c890671
fix: update seeder condition in TorrentioFormatter to allow zero seeders
Viren070 May 29, 2025
6d0a088
feat: adjust addons menu
Viren070 May 29, 2025
47cc8f6
feat(frontend): add customization options for addon name and logo in …
Viren070 May 29, 2025
14f56d1
fix: truncate addon name and update modal value states to handle chan…
Viren070 May 29, 2025
7a8655d
fix: handle when drag ends outside drag context
Viren070 May 29, 2025
930eb21
ci: add metadata generation to workflows
Viren070 May 29, 2025
1f0a0e4
fic: add endpoint to serve configure.txt file
Viren070 May 29, 2025
632fbf9
fix: adjust grid layout in AddonFilterPopover
Viren070 May 29, 2025
6a5759d
feat: add api key field and handle encrypted values correctly.
Viren070 May 30, 2025
b70a763
feat: improve preset/parser system and add mediafusion, comet, stremt…
Viren070 May 30, 2025
6e7c142
fix: add description for stremthru torz
Viren070 May 30, 2025
e39e690
fix: make object validation less strict for parsed streams
Viren070 May 30, 2025
e3294eb
feat: add predefined format definitions for torbox, gdrive, and light…
Viren070 May 30, 2025
f3d84bc
fix: update formatter preview
Viren070 May 30, 2025
f6ef47f
fix: update GDriveFormatter to use 'inLibrary' instead of 'personal'
Viren070 May 30, 2025
5b8ec4d
feat(frontend): add tooltip for full service name in service tags for…
Viren070 May 30, 2025
ffc974e
fix(wrapper): enhance error logging for manifest and resource parsing…
Viren070 May 30, 2025
a1d2fc9
fix(parser): match against stream.description and apply fallback logi…
Viren070 May 30, 2025
c6a6350
fix(mediafusion): correctly return encoded user data, and fix parsing
Viren070 May 30, 2025
af90131
fix: export formatZodError
Viren070 May 30, 2025
da7dc3a
feat: filter out invalid items in wrapper repsponses, rather than fai…
Viren070 May 30, 2025
6370ac7
fix(custom): update manifest URL option to use 'manifestUrl'
Viren070 May 31, 2025
313c6bc
fix: make behaviorHints optional in manifest schema
Viren070 May 31, 2025
cd78ead
fix: only filter out resources using specified resources when length …
Viren070 May 31, 2025
c64a4f4
fix(wrapper): allow empty arrays as valid input in wrapper class
Viren070 May 31, 2025
f07d700
.
Viren070 Jun 3, 2025
00e305f
fix(mediaflow): add api_password query param when getting public IP
Viren070 Jun 3, 2025
0a4a761
fix(custom): replace 'stremio://' with 'https://' in manifest URL
Viren070 Jun 3, 2025
59d86ff
feat(parser): add support for additional video quality resolutions (1…
Viren070 Jun 3, 2025
413a29d
fix(core): actually apply exclude uncached/cached filters
Viren070 Jun 3, 2025
7c10930
fix(constants): add back Dual Audio, Dubbed, and Multi
Viren070 Jun 3, 2025
826edae
fix(comet): don't make service required for comet
Viren070 Jun 3, 2025
c0b6fd3
fix: give more descriptive errors when no service is provded
Viren070 Jun 3, 2025
ffd9dbb
some fixes
Viren070 Jun 4, 2025
2b329fe
fix: save preferred values when adjusting from select menu
Viren070 Jun 4, 2025
db3336c
more fixes
Viren070 Jun 5, 2025
8b85a53
fix: correctly handle undefined parsed file
Viren070 Jun 5, 2025
e995f97
fix(parser): safely access parsedFile properties to handle potential …
Viren070 Jun 5, 2025
2c5c642
feat(frontend): improve addons menu, preserve existing catalog settings
Viren070 Jun 5, 2025
2361e5c
feat(frontend): hide menu control button text on smaller screens
Viren070 Jun 5, 2025
12b3f42
feat(frontend): add valid formatter snippets and add valid descriptio…
Viren070 Jun 5, 2025
5197331
feat(frontend): make catalog card title consistent with other cards
Viren070 Jun 5, 2025
6a2cd91
fix p2p snippet
Viren070 Jun 5, 2025
653b306
feat: add seeders filters
Viren070 Jun 5, 2025
dea5950
feat: adjust default user data
Viren070 Jun 5, 2025
113c150
fix: correctly handle required filters and remove HDR+DV as a tag aft…
Viren070 Jun 5, 2025
3d43673
fix: update duration state to use milliseconds and adjust input handling
Viren070 Jun 5, 2025
2c97ec0
feat(frontend): use queue and default regex matched to undefined
Viren070 Jun 5, 2025
aed775c
feat: prefer results with higher seeders when deduping
Viren070 Jun 5, 2025
a301002
feat: improve config handling, define all skip reasons, add env vars …
Viren070 Jun 5, 2025
153366b
fix: correctly handle usenet results during deduping
Viren070 Jun 5, 2025
654b1bc
fix: correctly import/export FeatureControl
Viren070 Jun 5, 2025
4daa644
fix: add verbose logging for resources and fix addon catalog support
Viren070 Jun 5, 2025
e8c61a9
feat: changes
Viren070 Jun 6, 2025
3fe5027
fix: update default apply mode for cached and uncached filters from '…
Viren070 Jun 6, 2025
52fb3bb
feat: add folder size, add smart detect deduplicator, parse folder si…
Viren070 Jun 6, 2025
0170267
feat: add donation modal button at top of about menu
Viren070 Jun 6, 2025
5df60d7
feat: add aliased configuration support
Viren070 Jun 6, 2025
a09dcea
fix: set default sizeK value to 1024 in StreamParser and remove overr…
Viren070 Jun 6, 2025
731c1d0
feat: add regex functions to condition parser
Viren070 Jun 6, 2025
32b5a5b
feat: implement import functionality via modal for JSON files and URL…
Viren070 Jun 6, 2025
2a525b2
feat(conditions): add support for multiple groupings, and add type co…
Viren070 Jun 6, 2025
65a4c91
fix: update default value for ADDON_PASSWORD and SECRET_KEY
Viren070 Jun 6, 2025
8c68051
feat: add health check to dockerfile
Viren070 Jun 6, 2025
3bd2751
feat: use shorter function names in condition parser
Viren070 Jun 6, 2025
963a3f7
fix: prevent fetching from aiostreams instance of the same user
Viren070 Jun 6, 2025
d572c04
feat: make `BASE_URL` required and disable self scraping by default
Viren070 Jun 6, 2025
b4f6927
feat: add opensubtitles v3
Viren070 Jun 6, 2025
56994ef
fix: await precomputation of sort regexes
Viren070 Jun 6, 2025
eefa184
fix: update addon name formatting in AIOStreamsStreamParser to prefix…
Viren070 Jun 6, 2025
734bd88
fix: change image class from object-cover to object-contain in AddonC…
Viren070 Jun 6, 2025
3d7b0da
fix: don't make base_url required
Viren070 Jun 6, 2025
0bf6fcb
feat: implement user pruning functionality with configurable interval…
Viren070 Jun 6, 2025
bff13dc
fix: remove max connections limit from PostgreSQL pool configuration
Viren070 Jun 6, 2025
3648f94
fix: update MediaFusion logo URL
Viren070 Jun 6, 2025
8611523
feat: replace custom HTML div with SettingsCard component for consist…
Viren070 Jun 6, 2025
db68a5c
feat: rename cache to cached in condition parser
Viren070 Jun 6, 2025
0383671
feat: add stream passthrough option, orion, jackettio, dmm cast, marv…
Viren070 Jun 7, 2025
b8bbb17
fix: remove emojis from filename
Viren070 Jun 7, 2025
f0a448b
fix: override stream parser for torz to remove indexer
Viren070 Jun 7, 2025
98c5b71
feat(frontend): add descriptions to addons and catalog cards
Viren070 Jun 7, 2025
c4991c6
feat: add strict title matching
Viren070 Jun 7, 2025
edd1e4f
feat(frontend): add shuffle indicator to catalog item
Viren070 Jun 7, 2025
3378851
feat: enhance strict title matching with configuration options for re…
Viren070 Jun 7, 2025
4024c01
feat: add 'onlyOnDiscover' catalog modifier
Viren070 Jun 7, 2025
eb651b5
fix: adjust option name to keep backwards compatability with older co…
Viren070 Jun 7, 2025
ae74926
feat: implement MAX_ADDONS and fix error returning
Viren070 Jun 7, 2025
6cc20e1
fix: ensure early return on error handling in catalog route
Viren070 Jun 7, 2025
e415a70
feat: implement timeout constraints in preset options using MAX_TIMEO…
Viren070 Jun 7, 2025
20fc37c
feat: clean up env vars and add rate limit to catalog api
Viren070 Jun 7, 2025
2fd0522
fix: remove unused regex environment variables from status route
Viren070 Jun 7, 2025
dfef789
fix: remove unused regex fields from StatusResponseSchema
Viren070 Jun 7, 2025
1cb22ee
chore: add favicon.ico and remove unused SVG files from frontend assets
Viren070 Jun 7, 2025
8b34be3
feat: add StreamFusion
Viren070 Jun 7, 2025
8c0622e
feat: remove useMultipleInstances and debridDownloader options for si…
Viren070 Jun 7, 2025
34ed384
feat: add nuviostreams and anime kitsu
Viren070 Jun 7, 2025
6a2ce96
fix remove cookie
Viren070 Jun 7, 2025
bb30b4a
fix: update error handling in OrionStreamParser to throw an error ins…
Viren070 Jun 8, 2025
980682c
feat: implement pre-caching of the next episode
Viren070 Jun 8, 2025
df546d3
feat: add audio channel filter and fix unknown filtering not working …
Viren070 Jun 8, 2025
279ff00
fix(mediaflow): include api_password in public IP endpoint URL only
Viren070 Jun 8, 2025
17873bb
fix: don't validate user data on retrieval within UserRepository
Viren070 Jun 8, 2025
4b1f45d
feat: add infohash extractor in base stream parser
Viren070 Jun 8, 2025
fcec2b9
feat: add size filters, allowing resolution specific limit
Viren070 Jun 8, 2025
18e034f
feat: add stream type exclusions for cached and uncached results
Viren070 Jun 8, 2025
ab1c216
fix: update Peerflix logo URL
Viren070 Jun 9, 2025
714fedb
fix: improve filename sanitization in StreamParser by using Emoji_Pre…
Viren070 Jun 9, 2025
90432ae
feat: add support for includes modifier for array
Viren070 Jun 9, 2025
163352a
feat: improve French language regex to include common indicators
Viren070 Jun 9, 2025
062247a
fix: don't make name required in MetaPreview schema
Viren070 Jun 9, 2025
4a8e9c3
fix: update size filter constraints to allow zero values
Viren070 Jun 9, 2025
50db0e2
feat: enhance language detection in MediaFusionStreamParser to parse …
Viren070 Jun 9, 2025
d0faecc
fix: update MediaFlowProxy to conditionally include api_password in p…
Viren070 Jun 9, 2025
89eac41
feat: implement detailed statistics tracking and reporting for stream…
Viren070 Jun 9, 2025
34b57c9
feat: revert 89eac415a422189d80a3c3c66cde26762bd7f437
Viren070 Jun 9, 2025
7a02f12
fix: enhance Japanese language regex to include 'jpn' as an abbreviation
Viren070 Jun 9, 2025
6d08d7c
fix: ignore language flags in Torrentio streams if Multi Subs is present
Viren070 Jun 9, 2025
dbd5dd6
fix: remove check of non-existent url option in OpenSubtitlesPreset
Viren070 Jun 9, 2025
807b681
fix: add missing braces in parseConnectionURI function for sqlite and…
Viren070 Jun 9, 2025
1a0d57a
fix: add timeout to fetch requests in TMDBMetadata class to prevent h…
Viren070 Jun 9, 2025
f1afe5f
fix: simplify duration formatting in getTimeTakenSincePoint function
Viren070 Jun 9, 2025
8e87004
fix: call await on all compileRegex calls
Viren070 Jun 9, 2025
4eeeb59
fix: replace hardcoded SUPPORTED_RESOURCES with supportedResources in…
Viren070 Jun 9, 2025
4ee350e
refactor: remove redundant check for manifest.json in NuvioStreamsPreset
Viren070 Jun 9, 2025
9c48fad
fix: safely access catalogs options and default to false for streamfu…
Viren070 Jun 9, 2025
886a8cb
fix: ensure debridDownloader defaults to an empty string when no serv…
Viren070 Jun 9, 2025
ed73f5d
fix: replace incorrect hardcoded SUPPORTED_RESOURCES with supportedRe…
Viren070 Jun 9, 2025
f8b08b3
fix: prevent mutating options object in OrionPreset
Viren070 Jun 9, 2025
edc310f
fix: update AIOStream schema export and enhance AIOStreamsStreamParse…
Viren070 Jun 9, 2025
843b535
fix: add validation for encrypted data format in decryptString function
Viren070 Jun 9, 2025
4791f36
fix: return url when no modifications are needed in JackettioStreamPa…
Viren070 Jun 9, 2025
cbfb4b7
fix: return original URL when no modifications are made in CometStrea…
Viren070 Jun 9, 2025
67b188e
fix: ensure transaction rollback only occurs if not committed in dele…
Viren070 Jun 9, 2025
6bc9e9d
refactor: import fs at root level in db.ts
Viren070 Jun 9, 2025
9d299ae
refactor: remove unecessary catches in commit and rollback methods
Viren070 Jun 9, 2025
a7bb898
fix: adapt query for SQLite dialect in DB class
Viren070 Jun 9, 2025
5daebd6
refactor: remove unused handleComparison method from BaseFormatter
Viren070 Jun 9, 2025
85a7775
fix: wrap handling for join case in block
Viren070 Jun 9, 2025
02a2885
fix: add block scope for array modifier handling in BaseFormatter
Viren070 Jun 9, 2025
f7af103
docs: add example for generating SECRET_KEY in env.ts
Viren070 Jun 9, 2025
16b208b
fix: wrap switch cases in blocks
Viren070 Jun 9, 2025
fda5ffe
fix: add missing audio tags to constant
Viren070 Jun 9, 2025
bdf9a91
fix: decode data before attempting validation
Viren070 Jun 9, 2025
2cd7d4d
fix: restore TMDBMetadata import in main.ts and enable metadata expor…
Viren070 Jun 9, 2025
8d307a0
feat: switch to different arrow icons and use built-in hideTextOnSmal…
Viren070 Jun 9, 2025
5232e38
feat: update About component with new guide URLs and enhance Getting …
Viren070 Jun 9, 2025
62911ad
feat: use button for log in/out
Viren070 Jun 9, 2025
938323f
feat: add support for converting ISO 639_2 to languages and prevent l…
Viren070 Jun 9, 2025
2378869
feat: update TMDB access token input to password type with placeholder
Viren070 Jun 9, 2025
51f6bd6
feat: add more addons and fix stuff
Viren070 Jun 10, 2025
010b63c
feat: update static file serving rate limiting and refactor file path…
Viren070 Jun 10, 2025
3d26421
feat: fix condition parsing for unknown values and separate cached in…
Viren070 Jun 11, 2025
d0077f4
refactor: remove deprecated MediaFusion and Stremio Jackett environme…
Viren070 Jun 11, 2025
b404c21
chore: update .env.sample with enhanced configuration options and imp…
Viren070 Jun 11, 2025
0b85ff3
feat: move 'custom' preset to the beginning
Viren070 Jun 11, 2025
4cd6522
feat: add season/episode matching
Viren070 Jun 11, 2025
7e031e5
feat: ui improvements
Viren070 Jun 11, 2025
d89e796
fix: adjust grouping in season presence check logic
Viren070 Jun 11, 2025
4001fae
feat: enhance stream parsing to prefer folder titles when available
Viren070 Jun 11, 2025
d8f5d1a
fix: adjust spacing in predefined formatters and add p2p marker to to…
Viren070 Jun 11, 2025
7f4405e
feat: add link to wiki in groups and link to predefined formatter def…
Viren070 Jun 11, 2025
5ebb539
fix: update user data merging logic in configuration import
Viren070 Jun 12, 2025
9bd9810
fix: update user data reset logic
Viren070 Jun 12, 2025
878cd7c
feat: add source addon name to catalog and improve ui/ux
Viren070 Jun 12, 2025
c9356db
feat: expand cache system and add rate limiting to all routes, attemp…
Viren070 Jun 12, 2025
9771c7b
fix: potentially fix regex sorting
Viren070 Jun 12, 2025
d845c0c
feat: add delete icon to preferred list, only load valid values, fix …
Viren070 Jun 12, 2025
d728bb6
fix: handle when item doesn't exist in preferred list
Viren070 Jun 12, 2025
049f65b
fix: only use the movie/series specific cached/uncached sort criteria…
Viren070 Jun 12, 2025
871f54e
fix: add back library marker to LightGDriveFormatter
Viren070 Jun 12, 2025
96d355f
fix: update NameableRegex schema to allow empty name and remove usele…
Viren070 Jun 12, 2025
bec91a8
feat: allow passing flags through
Viren070 Jun 12, 2025
dd0f45c
feat: validate regexes on config validation
Viren070 Jun 12, 2025
2470ae9
fix: correct library marker usage in LightGDriveFormatter
Viren070 Jun 12, 2025
0f16575
fix: allow null value for description in MetaPreview
Viren070 Jun 12, 2025
39b1e84
feat: ui improvments
Viren070 Jun 12, 2025
915187a
feat: use sliders for seeder ranges and fix some options not being mu…
Viren070 Jun 13, 2025
d2f4dc1
fix: pass user provided TMDB access token to TMDBMetadata
Viren070 Jun 13, 2025
091394b
feat: proxy fixes and log adjustments
Viren070 Jun 13, 2025
c60ef6f
fix: update handling of default/forced values
Viren070 Jun 13, 2025
aa98e7b
fix: adjust default rate limit values
Viren070 Jun 13, 2025
868e867
docs: add default TMDB access token to .env.sample for Title Matching…
Viren070 Jun 13, 2025
6fd5f5b
feat: identify casted streams from DMM cast as library streams and in…
Viren070 Jun 13, 2025
90980c7
fix: update Bengali regex to not match ben the men
Viren070 Jun 13, 2025
b16f36d
fix: update cached sorting to prefer all streams that are not explici…
Viren070 Jun 13, 2025
3173caf
refactor: remove unused option type constants and clean up exports
Viren070 Jun 13, 2025
ad0b6f1
docs: add clarification comments for static rate limit configuration …
Viren070 Jun 13, 2025
e451a2c
refactor: add block to service case
Viren070 Jun 13, 2025
efb57bf
fix: fallback to undefined when both default and forced value are und…
Viren070 Jun 13, 2025
551335b
fix: correct spelling of 'committed' in UserRepository class
Viren070 Jun 13, 2025
2f37187
fix: improve error handling in TMDBMetadata by including response sta…
Viren070 Jun 13, 2025
56734f0
fix: log errors in more cases, correctly handle partial proxy configu…
Viren070 Jun 13, 2025
c8224bc
fix: remove unnecessary UUID assignment in UserRepository class
Viren070 Jun 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
515 changes: 382 additions & 133 deletions .env.sample

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ jobs:
if [[ "$(git rev-parse origin/main)" = "$(git rev-parse "${INPUT_REF}")" ]]; then
TAGS="${TAGS} latest"
fi
CHANNEL="stable"
;;
[0-9]*.[0-9]*.[0-9]*-nightly)
TAGS="${INPUT_REF} nightly"
CHANNEL="nightly"
;;
*)
echo "Invalid Input Ref: ${INPUT_REF}"
Expand All @@ -76,8 +78,19 @@ jobs:
echo EOF
} >> "${GITHUB_ENV}"

echo "CHANNEL=${CHANNEL}" >> "${GITHUB_ENV}"

cat "${GITHUB_ENV}"

- name: Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Generate metadata
run: |
node scripts/generateMetadata.js --channel=${{env.CHANNEL}}

- name: Build & Push
uses: docker/build-push-action@v6
with:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ out/
.next/
next-env.d.ts
.wrangler/
.env
.env
metadata.json
data/
45 changes: 18 additions & 27 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,22 @@ COPY LICENSE ./

# Copy the relevant package.json and package-lock.json files.
COPY package*.json ./
COPY packages/formatters/package*.json ./packages/formatters/
COPY packages/parser/package*.json ./packages/parser/
COPY packages/types/package*.json ./packages/types/
COPY packages/wrappers/package*.json ./packages/wrappers/
COPY packages/addon/package*.json ./packages/addon/
COPY packages/server/package*.json ./packages/server/
COPY packages/core/package*.json ./packages/core/
COPY packages/frontend/package*.json ./packages/frontend/
COPY packages/utils/package*.json ./packages/utils/

# Install dependencies.
RUN npm install

# Copy source files.
COPY tsconfig.*json ./

COPY packages/addon ./packages/addon
COPY packages/formatters ./packages/formatters
COPY packages/parser ./packages/parser
COPY packages/types ./packages/types
COPY packages/wrappers ./packages/wrappers
COPY packages/server ./packages/server
COPY packages/core ./packages/core
COPY packages/frontend ./packages/frontend
COPY packages/utils ./packages/utils
COPY scripts ./scripts
COPY resources ./resources


# Build the project.
RUN npm run build
Expand All @@ -43,25 +38,21 @@ WORKDIR /app
# The package.json files must be copied as well for NPM workspace symlinks between local packages to work.
COPY --from=builder /build/package*.json /build/LICENSE ./

COPY --from=builder /build/packages/addon/package.*json ./packages/addon/
COPY --from=builder /build/packages/core/package.*json ./packages/core/
COPY --from=builder /build/packages/frontend/package.*json ./packages/frontend/
COPY --from=builder /build/packages/formatters/package.*json ./packages/formatters/
COPY --from=builder /build/packages/parser/package.*json ./packages/parser/
COPY --from=builder /build/packages/types/package.*json ./packages/types/
COPY --from=builder /build/packages/wrappers/package.*json ./packages/wrappers/
COPY --from=builder /build/packages/utils/package.*json ./packages/utils/

COPY --from=builder /build/packages/server/package.*json ./packages/server/

COPY --from=builder /build/packages/addon/dist ./packages/addon/dist
COPY --from=builder /build/packages/core/dist ./packages/core/dist
COPY --from=builder /build/packages/frontend/out ./packages/frontend/out
COPY --from=builder /build/packages/formatters/dist ./packages/formatters/dist
COPY --from=builder /build/packages/parser/dist ./packages/parser/dist
COPY --from=builder /build/packages/types/dist ./packages/types/dist
COPY --from=builder /build/packages/wrappers/dist ./packages/wrappers/dist
COPY --from=builder /build/packages/utils/dist ./packages/utils/dist
COPY --from=builder /build/packages/server/dist ./packages/server/dist

COPY --from=builder /build/resources ./resources

COPY --from=builder /build/node_modules ./node_modules

EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:$PORT/api/v1/status || exit 1

EXPOSE $PORT

ENTRYPOINT ["npm", "run", "start:addon"]
ENTRYPOINT ["npm", "run", "start"]
4 changes: 3 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ services:
- 3000:3000
env_file:
- .env
volumes:
- ./data:/app/data
healthcheck:
test: wget -qO- http://localhost:3000/health
test: wget -qO- http://localhost:3000/api/v1/status
interval: 1m
timeout: 10s
retries: 5
Expand Down
Loading
Loading