forked from usds/assessment-review-tool
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade frontend local Docker base to node:16.20.2
This allows us to maintain package-lock.json with lockFileVersion 2. Bump buildpack Node version to 16. Updating to Node 16 requires using a fork of react-loading-overlay which supports React 17... which this app already uses, but it wont build in Node 16 with the unforked package. Not sure how this worked before, but this is what I've discovered. Frontend wont build in Node > 16 so that what I've chosen. I tried Node 18 but it wont build, and complains of gyp errors.
- Loading branch information
1 parent
939b614
commit 692c923
Showing
6 changed files
with
14,339 additions
and
11,726 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
FROM node:12.16.2 AS builder | ||
RUN curl -o- -L https://yarnpkg.com/install.sh | bash | ||
FROM node:16.20.2 | ||
|
||
# set working directory | ||
|
||
ENV WKDIR /opt/react_app | ||
ENV WKDIR=/opt/react_app | ||
WORKDIR ${WKDIR} | ||
|
||
|
||
# RUN npm install -g node-sass | ||
RUN npm -g i react-scripts@3.4.1 | ||
RUN npm -g i serve | ||
|
||
COPY package*.json . | ||
|
||
RUN npm ci | ||
|
||
ENV PATH ${WKDIR}/node_modules/.bin:$PATH | ||
|
||
ENV PATH=${WKDIR}/node_modules/.bin:$PATH | ||
|
||
COPY . . | ||
|
||
CMD ["npm", "start"] | ||
CMD ["npm", "start"] |
Oops, something went wrong.