Skip to content

Commit

Permalink
Update frontend.containerfile
Browse files Browse the repository at this point in the history
* 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`
  • Loading branch information
kpouget authored and jtaleric committed Jan 4, 2024
1 parent 8a64e95 commit 806cafe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/frontend.containerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down

0 comments on commit 806cafe

Please sign in to comment.