@@ -5,8 +5,7 @@ FROM node:22-bullseye AS dev
55RUN apt-get update -y \
66 && apt-get install -y --no-install-recommends git \
77 && rm -rf /var/lib/apt/lists/* \
8- # NOTE: yarn > 1.22.19 breaks yarn-install invoked by yarn
9- 8+ && npm install -g
[email protected] --force \
109 && git config --global --add safe.directory /code
1110
1211WORKDIR /code
@@ -19,16 +18,17 @@ COPY ./package.json ./yarn.lock /code/
1918RUN yarn install
2019COPY . /code/
2120
22- ENV VITE_FIREBASE_API_KEY=12
23- ENV VITE_FIREBASE_AUTH_DOMAIN=1234
24- ENV VITE_FIREBASE_DATABASE_URL=https://mapswipe.org
25- ENV VITE_FIREBASE_PROJECT_ID=1235
26- ENV VITE_FIREBASE_STORAGE_BUCKET=1245
27- ENV VITE_FIREBASE_MESSAGING_SENDER_ID=124
28- ENV VITE_FIREBASE_APP_ID=134
21+ ENV VITE_FIREBASE_API_KEY=ExampleF1rebaseAP1k3y
22+ ENV VITE_FIREBASE_AUTH_DOMAIN=example-key.firebaseapp.com
23+ ENV VITE_FIREBASE_DATABASE_URL=https://example-database.firebaseio.com
24+ ENV VITE_FIREBASE_PROJECT_ID=example
25+ ENV VITE_FIREBASE_STORAGE_BUCKET=example.appspot.com
26+ ENV VITE_FIREBASE_MESSAGING_SENDER_ID=123123456123
27+ ENV VITE_FIREBASE_APP_ID=1:23456789:web:1abc234def567
2928ENV VITE_COMMUNITY_DASHBOARD_URL=https://mapswipe.org
3029
3130ENV VITE_FIREBASE_MEASUREMENT_ID=
31+ ENV VITE_MAPILLARY_API_KEY=
3232ENV VITE_BASE_URL=https://mapswipe.org/privacy
3333ENV VITE_PRIVACY_POLICY_URL=https://mapswipe.org/privacy/
3434ENV VITE_IMPRINT_URL=https://mapswipe.org/privacy/
@@ -57,19 +57,14 @@ ENV VITE_APP_ATTRIBUTION_URL=https://mapswipe.org/privacy/
5757
5858RUN WEB_APP_SERVE_ENABLED=true yarn build-only --outDir=/code/build
5959
60- # FROM web-app-serve AS web-app-serve-example
61-
62- # LABEL maintainer="Togglecorp"
6360FROM ghcr.io/toggle-corp/web-app-serve:v0.1.2 AS web-app-serve
6461
6562LABEL org.opencontainers.image.source="github.com/mapswipe/mapswipe-web"
6663LABEL org.opencontainers.image.authors=
"[email protected] " 6764
68- # Env for apply-config script
6965ENV APPLY_CONFIG__SOURCE_DIRECTORY=/code/build/
7066
7167COPY ./web-app-serve/web-app-apply-config.sh /code/
7268ENV APPLY_CONFIG__APPLY_CONFIG_PATH=/code/web-app-apply-config.sh
73- RUN ls /code/
7469
7570COPY --from=web-app-serve-build /code/build "$APPLY_CONFIG__SOURCE_DIRECTORY"
0 commit comments