Skip to content

Commit

Permalink
Update to Node.js 18
Browse files Browse the repository at this point in the history
  • Loading branch information
1aerostorm committed Sep 25, 2023
1 parent 6fd5e51 commit 011bdf6
Show file tree
Hide file tree
Showing 4 changed files with 839 additions and 370 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM node:16.1 as build
FROM node:18.18.0 as build

WORKDIR /var/app
COPY . /var/app
ENV NODE_OPTIONS --openssl-legacy-provider
RUN yarn install
RUN yarn build-version && yarn build
RUN yarn build-version && export NODE_OPTIONS=--openssl-legacy-provider && yarn build

FROM node:16.1-alpine
FROM node:18.18.0-alpine

WORKDIR /var/app

Expand All @@ -15,6 +16,7 @@ ENV SOURCE_COMMIT ${SOURCE_COMMIT}
COPY --from=build /var/app /var/app
ENV PORT 8080
ENV NODE_ENV production
ENV NODE_OPTIONS --openssl-legacy-provider

EXPOSE 8080
CMD [ "yarn", "run", "prod" ]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sudo docker-compose up
#### Install for Development mode

```bash
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -

sudo apt-get install -y nodejs

Expand Down Expand Up @@ -71,4 +71,4 @@ We adhere to BEM methodology with exception for Foundation classes, here is an e
<!-- Element with modifier -->
<li class="Header__menu-item--selected">Element with modifier</li>
</ul>
```
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"minimist": "^1.2.0",
"multiselect-react-dropdown": "^1.6.7",
"multistream": "^2.1.1",
"node-sass": "6.0.0",
"node-sass": "8.0.0",
"numeral": "^2.0.6",
"polished": "^1.9.2",
"prop-types": "^15.6.1",
Expand Down
Loading

0 comments on commit 011bdf6

Please sign in to comment.