From 806cafe3b7bfa013796404e6244b22fea745cf19 Mon Sep 17 00:00:00 2001 From: Kevin Pouget Date: Tue, 2 Jan 2024 14:12:55 +0100 Subject: [PATCH] Update frontend.containerfile * update the base image (outdated, some package require a more recent version) * install the missing required package `react-scripts` * add `react-scripts` to the `PATH` --- frontend/frontend.containerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/frontend.containerfile b/frontend/frontend.containerfile index fcdf982e..e40cf576 100644 --- a/frontend/frontend.containerfile +++ b/frontend/frontend.containerfile @@ -1,5 +1,5 @@ # pull official base image -FROM docker.io/library/node:16.10.0-alpine3.13 +FROM docker.io/library/node:16.20.2-alpine3.18 RUN mkdir /app @@ -8,6 +8,9 @@ COPY . /app WORKDIR /app RUN yarn install +RUN yarn add react-scripts +ENV PATH="${PATH}:/app/node_modules/.bin/react-scripts" + EXPOSE 3000 RUN chown -R node /app