diff --git a/packages/app/package.json b/packages/app/package.json index cdaeb36..b64336c 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -54,6 +54,8 @@ "@material-ui/icons": "^4.9.1", "@rjsf/core": "^5.8.1", "@rjsf/utils": "^5.8.1", + "@types/fs-extra": "^11.0.1", + "fs-extra": "^11.1.1", "history": "^5.0.0", "react": "^17.0.2", "react-dom": "^17.0.2", diff --git a/packages/backend/Dockerfile b/packages/backend/Dockerfile index 51f7124..87d26bd 100644 --- a/packages/backend/Dockerfile +++ b/packages/backend/Dockerfile @@ -9,16 +9,19 @@ # # Once the commands have been run, you can build the image using `yarn build-image` -FROM node:16-bullseye-slim +FROM node:18-bullseye-slim # Install sqlite3 dependencies. You can skip this if you don't use sqlite3 in the image, # in which case you should also move better-sqlite3 to "devDependencies" in package.json. RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ apt-get update && \ - apt-get install -y --no-install-recommends libsqlite3-dev python3 build-essential && \ + apt-get install -y --no-install-recommends libsqlite3-dev python3 build-essential wget ca-certificates && \ yarn config set python /usr/bin/python3 +RUN wget -P /usr/local/bin/ https://dl.k8s.io/release/v1.27.0/bin/linux/amd64/kubectl \ + && chmod +x /usr/local/bin/kubectl + # From here on we use the least-privileged `node` user to run the backend. USER node