Skip to content

Commit

Permalink
Merge pull request #65 from datasektionen/update-node
Browse files Browse the repository at this point in the history
Use latest version of node
  • Loading branch information
Herkarl authored Mar 28, 2024
2 parents 9e989fc + 1411d99 commit 3eaad55
Show file tree
Hide file tree
Showing 4 changed files with 15,513 additions and 11,933 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM node:10-alpine3.11 AS base
FROM node:21-alpine3.18 AS base

WORKDIR /app
ENV NODE_OPTIONS=--openssl-legacy-provider

# I dont know why, but when doing npm install in this Dockerfile, methone just gets cloned but there
# is no dist directory, which makes the build fail since there is nothing in methone to import.
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Universal react application for the chapter website.

NOTE: when building with podman, you may need to specify `--ulimit nofile=65535:65535`.

## Environment variables

| Name | Default | Description |
Expand All @@ -12,9 +14,9 @@ Universal react application for the chapter website.
| TAITAN_CACHE_TTL | 3600 | Time to keep content from taitan cached in seconds. Tip: Set to 0 if using local taitan & bawang-content. |
| CALYPSO_CACHE_TTL | 30 | Time to keep news from calypso cached in seconds. Tip: Set to 0 if using local calypso. |
| PORT | 3000 | Port to listen on |
| NODE_OPTIONS | - | Set to --openssl-legacy-provider if using a non-ancient version of node |

## Running
Bawang runs on Node v.10.x.x. It doesn't work on later versions (v.12.20.1)

- `npm run start:dev` will start the whole universal server in development mode. HMR will be enabled on both server and client side!
- `npm run build` will build a production ready server.
Expand Down
Loading

0 comments on commit 3eaad55

Please sign in to comment.