-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/ssr' into ssr
* origin/ssr: Remove build time environment variables Comment out early hints Build on container start Update the PUBLIC_URL domain in dev images Update the API domain
- Loading branch information
Showing
5 changed files
with
4 additions
and
35 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
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,30 +1,11 @@ | ||
FROM node:20 AS build | ||
|
||
ARG VITE_MAPBOX_API_TOKEN | ||
ENV VITE_MAPBOX_API_TOKEN=$VITE_MAPBOX_API_TOKEN | ||
|
||
ARG VITE_MACROSTRAT_TILESERVER_V2 | ||
ENV VITE_MACROSTRAT_TILESERVER_V2=$VITE_MACROSTRAT_TILESERVER_V2 | ||
|
||
ARG VITE_MACROSTRAT_TILESERVER_V1 | ||
ENV VITE_MACROSTRAT_TILESERVER_V1=$VITE_MACROSTRAT_TILESERVER_V1 | ||
|
||
ARG VITE_MACROSTRAT_TILESERVER_DOMAIN | ||
ENV VITE_MACROSTRAT_TILESERVER_DOMAIN=$VITE_MACROSTRAT_TILESERVER_DOMAIN | ||
|
||
ARG VITE_MACROSTRAT_API_DOMAIN | ||
ENV VITE_MACROSTRAT_API_DOMAIN=$VITE_MACROSTRAT_API_DOMAIN | ||
|
||
ARG VITE_CORELLE_API_DOMAIN | ||
ENV VITE_CORELLE_API_DOMAIN=$VITE_CORELLE_API_DOMAIN | ||
|
||
ENV NODE_ENV=production | ||
|
||
WORKDIR /usr/src/app | ||
COPY . ./ | ||
|
||
RUN yarn cache clean | ||
RUN yarn add | ||
RUN yarn run bundle | ||
|
||
CMD ["yarn", "run", "server"] | ||
CMD ["sh", "server/server.sh"] |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
yarn run bundle | ||
yarn run server |