Commit graph

21 commits

Author SHA1 Message Date
Felipe Knorr Kuhn
425d158777
Update Dockerfile to work with the new Rust steps 2024-04-03 18:12:26 +09:00
Felipe Knorr Kuhn
8956ef4b43
Bump Docker images to node v20.12.0 LTS 2024-04-01 16:14:26 +09:00
dependabot[bot]
dbe66fd4d9
Bump node in /docker/backend
Bumps node from 20.8.0-buster-slim to 20.11.1-buster-slim.

---
updated-dependencies:
- dependency-name: node
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-19 02:38:37 +00:00
Felipe Knorr Kuhn
fba4759ba1
Update node base images to 20.8.0 2023-09-29 19:16:06 -07:00
Felipe Knorr Kuhn
097db4edcd
Update backend base images 2023-09-29 19:03:53 -07:00
junderw
ec918d57b2
Fix backend docker build for armv7 2023-07-08 23:03:03 -07:00
junderw
925ebf08d4
Fix Docker build for using napi-rs 2023-07-06 18:05:21 -07:00
wiz
e2e71c7a46
Add Maxmind GeoIP Lite download to Docker build 2023-03-19 17:49:08 +09:00
Erik Arvstedt
34c8ad614a
backend: Rename build variable DOCKER_COMMIT_HASH -> MEMPOOL_COMMIT_HASH
This var is useful for all build methods, not only Docker.

This is an internal renaming that doesn't change the public Docker
backend image API.
2022-09-02 12:50:44 +02:00
Erik Arvstedt
be72c5109a
backend: Create npm script package
This script creates a directory `backend/package` which only contains the
files required by the backend at runtime:
- The contents of `dist`
- `node_modules` minus `typescript` and `@typescript-eslint`.
  These packages are build-only and are larger than the remaining whole package.

By using only `backend/package` in the Docker image,
the backend content size in the image is decreased by 70% to 31M.
This, along with the improved copying in the Dockerfile, reduces the
backend image size by 44% to 200M.
(Step `RUN chown -R 1000:1000 /backend ...` created a layer that effectively
duplicated the backend.)
2022-09-02 12:50:43 +02:00
wiz
c5e8a83ebb
Update to Node.js v16.16.0, use shared zlib for prod 2022-07-08 17:22:56 +02:00
wiz
d57193c269
Fix npm install commands in Dockerfiles and ops scripts 2022-07-07 18:53:17 +02:00
Felipe Knorr Kuhn
212cced969
Update the recommended node version to v16.5.0 (LTS) 2022-05-09 21:59:09 -07:00
Felipe Knorr Kuhn
f88af9c3f9
Add the DOCKER_COMMIT_HASH env var to the backend Dockerfile 2022-03-23 12:16:21 -07:00
Felipe Knorr Kuhn
e00234dfb9
Set Dockerfiles to use Node v16.10.0 2021-12-06 23:52:23 -08:00
Felipe Knorr Kuhn
777e3d58b7 Fix non-deterministic TypeScript version on Dockerfile 2021-08-27 00:28:05 -07:00
Bastien Guillaumat
20ff62779d
Re-implement Docker workflow using GitHub Actions (#326)
* Recreate a docker dir with all docker files inside and add init.sh
* Add docker/README.md with example docker-compose.xml
* Add mysql vars for mempool-config.json
* Port can be set from env var in docker-compose.xml
* Update docker-compose.xml example to use latest tag
* Remove armv7 architecture from build workflow
* Remove master git-hash file
* Remove useless ':' in sed
2021-02-10 22:51:01 +09:00
Bastien
543fe8c735 Set all dir to be dockerized 2021-02-02 23:45:54 +01:00
Bastien
a36b5c660d Fix ENV_VAR issues 2021-02-02 19:20:05 +01:00
Bastien
91d4017aa6 Update ENV_VARIABLES in scripts && Fix some errors 2021-02-02 17:54:01 +01:00
Bastien
feb5e96323 Add docker dir to build mempool containers 2021-02-01 17:25:08 +01:00