diff --git a/Dockerfile b/Dockerfile index 14ea57a..41ce4f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,10 @@ FROM alpine:3.17 AS frontend # Move to a working directory (/static). WORKDIR /static +# https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported +ENV NODE_OPTIONS=--openssl-legacy-provider # Install npm (with latest nodejs) and yarn (globally, in silent mode). -RUN apk add --no-cache npm && \ +RUN apk add --update nodejs npm && \ npm i -g -s --unsafe-perm yarn # Copy only ./ui folder to the working directory. @@ -23,7 +25,7 @@ RUN yarn install && yarn build # Building a backend. # -FROM golang:1.16-alpine AS backend +FROM golang:1.18-alpine AS backend # Move to a working directory (/build). WORKDIR /build diff --git a/ui/package.json b/ui/package.json index d712d06..5c0f19b 100644 --- a/ui/package.json +++ b/ui/package.json @@ -28,7 +28,7 @@ "react-dom": "^16.13.1", "react-redux": "7.2.4", "react-router-dom": "5.3.0", - "react-scripts": "4.0.3", + "react-scripts": "5.0.1", "react-syntax-highlighter": "15.4.3", "react-window": "1.8.6", "recharts": "2.1.4",