Attempt to fix node/openssl dep issue

This commit is contained in:
Dustin Brett 2024-01-10 13:23:48 -08:00
parent 5748702f9b
commit a629ae7228
4 changed files with 2 additions and 7 deletions

View File

@ -14,7 +14,7 @@ jobs:
with:
node-version: 18
- name: Install Dependencies
run: NODE_OPTIONS='--openssl-legacy-provider' yarn
run: yarn
- name: Run Jest Unit Tests
run: yarn test
- name: Build App

1
.yarnrc Normal file
View File

@ -0,0 +1 @@
node-options=--openssl-legacy-provider

View File

@ -1,7 +1,5 @@
FROM node:18-alpine
ENV NODE_OPTIONS=--openssl-legacy-provider
RUN apk add --no-cache git
WORKDIR daedalOS

View File

@ -253,7 +253,3 @@ yarn serve
docker build -t daedalos .
docker run -dp 3000:3000 --rm --name daedalos daedalos
```
##### Notes
- If during `yarn install` you receive the error `digital envelope routines::unsupported`, you need to set `NODE_OPTIONS` to `--openssl-legacy-provider` ([1](https://github.com/DustinBrett/daedalOS/blob/main/Dockerfile#L3), [2](https://github.com/DustinBrett/daedalOS/blob/main/.github/workflows/main.yml#L17), [3](https://stackoverflow.com/a/69699772/5895982))