-
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
1 parent
c966ca8
commit 92df083
Showing
12 changed files
with
258 additions
and
206 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://github.com/confact/bun-buildpack |
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,12 +1,4 @@ | ||
HOST: http://localhost:3000 | ||
PORT: 3000 | ||
SITE_TITLE: "Bonjour monde !" | ||
STYLESHEET_URL: https://unpkg.com/bamboo.css | ||
CALLBACK_URL: /login-callback | ||
MCP_CLIENT_ID: client_id | ||
MCP_CLIENT_SECRET: client_secret | ||
MCP_PROVIDER: https://app-test.moncomptepro.beta.gouv.fr/ | ||
MCP_SCOPES: "openid email profile organization" | ||
LOGIN_HINT: "" | ||
MCP_ID_TOKEN_SIGNED_RESPONSE_ALG: RS256 | ||
MCP_USERINFO_SIGNED_RESPONSE_ALG: "" | ||
MCP_PROVIDER: https://app-test.moncomptepro.beta.gouv.fr/ |
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,19 +1,31 @@ | ||
FROM node:16 | ||
# | ||
|
||
FROM oven/bun:1 as base | ||
|
||
# Create app directory | ||
WORKDIR /usr/src/app | ||
|
||
# Install app dependencies | ||
# A wildcard is used to ensure both package.json AND package-lock.json are copied | ||
# where available (npm@5+) | ||
COPY package*.json ./ | ||
# | ||
|
||
FROM base AS install | ||
|
||
RUN mkdir -p /temp/prod | ||
COPY package.json bun.lockb /temp/prod/ | ||
RUN cd /temp/prod && bun install --frozen-lockfile --production | ||
|
||
# | ||
|
||
RUN npm install | ||
# If you are building your code for production | ||
# RUN npm ci --omit=dev | ||
FROM base AS prerelease | ||
|
||
# Bundle app source | ||
COPY . . | ||
|
||
EXPOSE 3000 | ||
CMD [ "npm", "start" ] | ||
# | ||
|
||
FROM base AS release | ||
|
||
COPY --from=install /temp/prod/node_modules node_modules | ||
COPY --from=prerelease /usr/src/app/index.ts . | ||
COPY --from=prerelease /usr/src/app/package.json . | ||
|
||
USER bun | ||
EXPOSE 3000/tcp | ||
ENTRYPOINT [ "bun", "run", "index.ts" ] |
Binary file not shown.
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,14 +1,14 @@ | ||
{ | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"test": "cypress run", | ||
"start": "cd .. && npm start" | ||
}, | ||
"devDependencies": { | ||
"@badeball/cypress-cucumber-preprocessor": "^19.2.0", | ||
"@bahmutov/cypress-esbuild-preprocessor": "^2.2.0", | ||
"cypress": "^13.6.1", | ||
"typescript": "^5.3.3" | ||
} | ||
}, | ||
"private": true, | ||
"scripts": { | ||
"test": "cypress run", | ||
"start": "cd .. && npm start" | ||
}, | ||
"type": "module" | ||
} |
Oops, something went wrong.