-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rate limit to isochrone calculation
- Loading branch information
Showing
3 changed files
with
18 additions
and
4 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,7 +1,11 @@ | ||
FROM node:18-alpine as build | ||
FROM node:18-alpine as ui-build | ||
WORKDIR /app/fastreach-ui | ||
COPY . /app | ||
RUN npm install && npm run build | ||
|
||
FROM caddy:2.7-builder-alpine AS caddy-build | ||
RUN xcaddy build --with github.com/RussellLuo/caddy-ext/ratelimit | ||
|
||
FROM caddy:2.7-alpine | ||
COPY --from=build /app/fastreach-ui/dist /usr/share/caddy | ||
COPY --from=caddy-build /usr/bin/caddy /usr/bin/caddy | ||
COPY --from=ui-build /app/fastreach-ui/dist /usr/share/caddy |