Skip to content

Commit

Permalink
Refresh oct. 2024 (#200)
Browse files Browse the repository at this point in the history
* Remove unused
* Refresh Dockerfile
* Remove plugin-react-load
  • Loading branch information
gwenblum authored Oct 11, 2024
1 parent 101b2dc commit 47e0e75
Show file tree
Hide file tree
Showing 5 changed files with 5,693 additions and 3,500 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Dockerfile
# 24.10.4

# Stage 1, Building React Application

FROM node:20.5.0-slim as react-build
FROM node:lts-slim as react-build

WORKDIR /app
COPY . .
Expand All @@ -14,10 +17,10 @@ COPY . .
# RUN npm install --legacy-peer-deps

# method 2: clean-install will install dependencies from the package-lock.json (immutable)
# RUN npm clean-install
RUN npm clean-install

# method 2 with legacy
RUN npm clean-install --legacy-peer-deps
# RUN npm clean-install --legacy-peer-deps

## Build

Expand All @@ -27,7 +30,7 @@ RUN npm run build

# Stage 2, Setting Up Production Environment

FROM nginx:1.25.1
FROM nginx:1.27

COPY default.conf.template /etc/nginx/conf.d/default.conf.template
COPY --from=react-build /app/build /usr/share/nginx/html
Expand Down
Loading

0 comments on commit 47e0e75

Please sign in to comment.