forked from lyc8503/onedrive-cf-index-ng
-
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.
- Loading branch information
Showing
4 changed files
with
29 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Dockerfile | ||
node_modules | ||
.next | ||
.vercel | ||
.wrangler |
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 |
---|---|---|
|
@@ -71,3 +71,5 @@ Temporary Items | |
|
||
# Built Visual Studio Code Extensions | ||
*.vsix | ||
|
||
.wrangler |
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,20 @@ | ||
FROM node:20-bullseye-slim AS build | ||
|
||
RUN npm install -g pnpm | ||
|
||
COPY . /src | ||
WORKDIR /src | ||
|
||
RUN pnpm install | ||
RUN npx @cloudflare/next-on-pages | ||
|
||
FROM node:20-bullseye-slim AS runtime | ||
|
||
COPY --from=build /src/.vercel /app/.vercel | ||
WORKDIR /app | ||
RUN npm install wrangler@3.24.0 | ||
RUN apt update && apt -y install ca-certificates && rm -rf /var/lib/apt/lists/* | ||
|
||
EXPOSE 8788 | ||
|
||
CMD ["npx", "wrangler", "pages", "dev", ".vercel/output/static", "--ip=0.0.0.0", "--compatibility-flag=nodejs_compat", "--compatibility-date=2023-10-10", "--kv=ONEDRIVE_CF_INDEX_KV"] |
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