35 Commits

Author SHA1 Message Date
Trim21
53ba39de72 build: fix docker warn (#784) 2024-08-13 22:09:52 +00:00
Trim21
ee5f8372db ci: fix publish (#775) 2024-08-09 21:03:24 +00:00
Trim21
61ea0b445a build: migrate to pnpm (#772) 2024-08-09 20:36:38 +00:00
Trim21
e523a294e7 build: use npm start in master-dbg docker image (#704) 2023-12-11 17:27:03 +00:00
Jesse Chan
d540d3699e Dockerfile: add "--legacy-peer-deps" to "npm ci" 2022-05-10 23:14:48 -07:00
Jesse Chan
3b7c8dc275 Dockerfile: use the "npm run build" command 2021-11-28 22:56:27 -08:00
Jesse Chan
e18c2fa6e1 CI: drop "--no-optional" npm flag 2021-11-19 18:54:50 -08:00
ConquerorDopy
e18ca8a30b containers: add registry to image references (#400) 2021-09-10 01:59:00 +08:00
Jesse Chan
5bbf032749 Dockerfile: add an extra stage for rtorrent-flood dbg image 2021-01-30 20:38:29 +08:00
Jesse Chan
5afa79b274 config.cli: migrate to TypeScript 2021-01-30 19:11:28 +08:00
Jesse Chan
3a67b05b7e Dockerfile: bundle rTorrent (not started by default) in master-dbg image 2021-01-23 21:00:47 +08:00
Jesse Chan
63d417f968 Dockerfile: get rid of native build tools and fix up multi-arch 2021-01-15 20:07:18 +08:00
Jesse Chan
f6cd07ed56 Dockerfile: make a debugging image 2021-01-15 19:42:34 +08:00
Jesse Chan
cc469bdcfd Revert "CI: disable Docker caching"
This reverts commit d9d9dc2bb1.
2020-12-14 22:03:08 +08:00
Jesse Chan
d9d9dc2bb1 CI: disable Docker caching 2020-12-14 21:20:57 +08:00
Jesse Chan
4f46c0ee40 CI: properly set version for rolling Docker image release 2020-12-11 20:07:30 +08:00
Jesse Chan
4c651eebcd Dockerfile: rollback aggressive cleanups
The space savings are less significant than expected, and
the detachment from official image layers actually makes
incremental updates longer.

Plus, arguably the image is much more extensible with
package managers.
2020-12-11 19:33:45 +08:00
Jesse Chan
a971a3cff5 Dockerfile: flatten Docker image layers 2020-12-11 13:30:34 +08:00
Jesse Chan
5caeeaeb12 Dockerfile: cleanup unused files after installation 2020-12-11 12:55:03 +08:00
Jesse Chan
81eebe4506 Dockerfile: always use host platform for build stage
Compiled assets and JavaScript files can run on any platform. So
always use host platform for build to eliminate emulation overhead.

Note that BUILDPLATFORM is new and requires docker buildx. It falls
back to amd64.
2020-11-28 22:45:37 +08:00
Jesse Chan
08fa52409b Dockerfile: install build dependencies in build layer 2020-10-24 00:21:28 +08:00
Jesse Chan
0b2f3a45c1 Dockerfile: copy config.cli.js to config.js 2020-09-17 02:35:59 +08:00
Jesse Chan
568c2cb57f config.cli: use as default by symlinking to config 2020-09-16 20:51:08 +08:00
Jesse Chan
dc906adfab Dockerfile: do not run "git clean" for "pack"
Do not run "git clean" for "pack" as node image does not
have git and it is arguably more dangerous to copy .git
folder into intermediate build image.

As we don't run "git clean", sensitive information might
be included in result package. Add a warning for that.
2020-09-05 12:11:57 +08:00
Jesse Chan
47f514c4b8 Dockerfile: revamp
Simplify. Use the same logics as release. Switch to CLI interface.

docker run -it -p 3000:3000 jesec/flood:master
2020-09-05 00:31:31 +08:00
zewelor
9065284312 Dockerfile: provide a secret to allow build to proceed
Secret is not used in build time. However, config.js
requires one. It won't affect runtime secret in any way
and "flood" used here will be blocked in runtime.
2020-09-02 19:29:28 +08:00
slicepaperwords
52805c0525 Dockerfile addition from PR #796 (#799)
* Update Dockerfile

* Update Dockerfile

* Update Dockerfile
2019-05-12 09:54:38 -07:00
slicepaperwords
fe2b9a6b83 updating dockerfile to include new updates (#796)
* updating dockerfile to include new updates

new node version and cut out some layers of the image

* Update Dockerfile
2019-05-10 22:10:02 -07:00
Ben Sampson
92e8989c0c Copy ABOUT.md in Dockerfile (#786)
Fixes #784
2019-05-02 20:41:41 -07:00
Alexander Chernov
2cd1aa63e7 Smaller docker image build. (#738)
Better use of multistaging build.
2019-01-03 20:27:51 -08:00
Shyam Sunder
cedd8bea7a Smaller Docker image (#622)
* Docker image has been greatly slimmed down and caches node_modules for rebuilds

* Update Dockerfile

* Dockerfile improvements

* Remove devDependencies from final image (#2)

* Remove devDependencies from final image

* Move to single-stage build
2018-09-20 22:10:04 -07:00
Martin Charles
14d7996f76 Updated Dockerfile
This does two things:

1. No longer user onbuild. Onbuild is deprecated for [reasons outlined
   here][reasons].

2. Build static assets with the container. Before, the static assets
   wouldn't be built causing the container to crash on start up.

[reasons]: https://github.com/docker-library/official-images/issues/2076
2017-12-03 13:06:17 -05:00
Centzilius
d6ea3f1e6d Install mediainfo before we copy the configuration 2017-05-28 15:00:02 +02:00
Centzilius
a10ac7dbbe Install mediainfo 2017-05-28 00:23:16 +02:00
Bryan Alves
96f1f1c75b Add support for Docker
Including a configuration file that allows setting of most settings by
injecting environment variables into the container.
2017-04-07 23:39:44 -04:00