-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #463 from hotosm/build/pnpm-node-lts
Migrate yarn --> pnpm and use node LTS 22.13
- Loading branch information
Showing
7 changed files
with
8,916 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,6 @@ | |
"prettier": "^3.3.2", | ||
"prettier-plugin-tailwindcss": "^0.6.5", | ||
"tailwindcss": "^3.4.4" | ||
} | ||
}, | ||
"packageManager": "[email protected]+sha512.845196026aab1cc3f098a0474b64dfbab2afe7a1b4e91dd86895d8e4aa32a7a6d03049e2d0ad770bbe4de023a7122fb68c1a1d6e0d033c7076085f9d5d4800d4" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18.16.0 | ||
v22.13.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# ARG for the base image | ||
ARG NODE_BASE=18.16.0-bullseye-slim | ||
ARG NODE_BASE=22.13.0-bullseye-slim | ||
ARG MINIO_TAG=RELEASE.2024-08-03T04-33-23Z | ||
ARG BASE64_ARGS_TO_ENV=ENV_VARS_BASE64_ENCODED_FOR_LIVE | ||
|
||
|
@@ -10,17 +10,21 @@ WORKDIR /app | |
|
||
# Run development environment | ||
FROM base AS development | ||
ENTRYPOINT ["/bin/sh", "-c", "yarn; yarn start --host 0.0.0.0;"] | ||
ENTRYPOINT ["/bin/sh", "-c", "pnpm install; pnpm run start --host 0.0.0.0;"] | ||
|
||
# Generate frontend build files | ||
FROM base AS build | ||
ARG BASE64_ARGS_TO_ENV | ||
|
||
COPY ./package.json . | ||
RUN yarn | ||
COPY ./package.json pnpm-lock.yaml . | ||
# FIXME this npm install is a workaround due to https://github.com/nodejs/corepack/issues/627 | ||
RUN npm install -g [email protected] | ||
# FIXME delete this line after fixed upstream | ||
RUN corepack prepare [email protected] --activate && corepack enable && corepack install | ||
RUN pnpm install | ||
COPY . /app | ||
RUN ( echo ${BASE64_ARGS_TO_ENV} | base64 -di ) > .env | ||
RUN yarn build | ||
RUN pnpm run build | ||
|
||
# Copy static files to minio and generated index.html to volume | ||
FROM docker.io/minio/minio:${MINIO_TAG} AS live | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
"@cyntler/react-doc-viewer": "^1.17.0", | ||
"@geomatico/maplibre-cog-protocol": "^0.3.1", | ||
"@hotosm/gcp-editor": "^0.0.9", | ||
"@hotosm/ui": "0.2.0-b6", | ||
"@mapbox/mapbox-gl-draw": "^1.4.2", | ||
"@mapbox/mapbox-gl-draw-static-mode": "^1.0.1", | ||
"@radix-ui/react-popover": "^1.0.6", | ||
|
@@ -95,7 +96,7 @@ | |
"prettier --cache --write" | ||
] | ||
}, | ||
"name": "starterkit-v2", | ||
"name": "drone-tm", | ||
"private": true, | ||
"scripts": { | ||
"build": "tsc && vite build", | ||
|
@@ -105,5 +106,6 @@ | |
"start": "vite" | ||
}, | ||
"type": "module", | ||
"version": "0.0.0" | ||
"version": "0.0.0", | ||
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0" | ||
} |
Oops, something went wrong.