Skip to content

Commit

Permalink
fix: get Dockerfile to build again
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Prodromou <evan@openearth.org>
  • Loading branch information
evanp committed Jun 25, 2024
1 parent ad784a1 commit d4b0a8c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 29 deletions.
7 changes: 4 additions & 3 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@

# build environment

FROM node:18 as build
FROM node:18 AS build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
ENV PATH=/app/node_modules/.bin:$PATH
COPY . ./
RUN npm ci --legacy-peer-deps
ENV SKIP_PREFLIGHT_CHECK=true
RUN npm run build

# production environment

FROM nginx:1-alpine as web
FROM nginx:1-alpine AS web
COPY --from=build /app/build /usr/share/nginx/html
RUN mkdir /app/
COPY --from=build /app/startup.sh /app/
Expand Down
51 changes: 26 additions & 25 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"dependencies": {
"-": "0.0.1",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.10.4",
"@jonkoops/matomo-tracker": "^0.7.0",
Expand Down Expand Up @@ -47,7 +48,7 @@
"react-redux": "^8.0.2",
"react-router-dom": "^5.3.3",
"react-scripts": "^4.0.3",
"react-toastify": "^9.0.3",
"react-toastify": "^8.0.0",
"react-tooltip": "^4.4.3",
"reactjs-popup": "^2.0.4",
"recharts": "^2.6.2",
Expand Down

0 comments on commit d4b0a8c

Please sign in to comment.