Fix docker build

This commit is contained in:
Ken Hibino 2023-07-03 20:00:10 -07:00
parent e44ba437a4
commit d1b889456d
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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",