Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
sso-renderer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
sso-renderer
Commits
3ba0e48d
Commit
3ba0e48d
authored
Jun 15, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.moenext.com:mycard/sso-renderer
parents
54ce1326
7729713e
Pipeline
#37640
passed with stages
in 11 minutes and 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
Dockerfile
Dockerfile
+2
-1
src/puppeteer/puppeteer.service.ts
src/puppeteer/puppeteer.service.ts
+6
-4
No files found.
Dockerfile
View file @
3ba0e48d
FROM
node:lts-bullseye-slim as base
LABEL
Author="Nanahira <nanahira@momobako.com>"
RUN
apt update
&&
apt
-y
install
python3 build-essential git chromium libnss3 libfreetype6-dev libharfbuzz-bin libharfbuzz-dev ca-certificates fonts-freefont-otf fonts-freefont-ttf fonts-noto-cjk fonts-noto-cjk-extra fonts-wqy-microhei fonts-wqy-zenhei
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
/var/log/
*
RUN
apt update
&&
apt
-y
install
python3 build-essential git chromium libnss3 libfreetype6-dev libharfbuzz-bin libharfbuzz-dev ca-certificates fonts-freefont-otf fonts-freefont-ttf fonts-noto-cjk fonts-noto-cjk-extra fonts-wqy-microhei fonts-wqy-zenhei
tini
&&
rm
-rf
/var/lib/apt/lists/
*
/tmp/
*
/var/tmp/
*
/var/log/
*
WORKDIR
/usr/src/app
COPY
./package*.json ./
...
...
@@ -17,4 +17,5 @@ COPY --from=builder /usr/src/app/dist ./dist
COPY
./config.example.yaml ./config.yaml
EXPOSE
3000
ENTRYPOINT
["/usr/bin/tini", "--"]
CMD
[ "npm", "run", "start:prod" ]
src/puppeteer/puppeteer.service.ts
View file @
3ba0e48d
...
...
@@ -35,10 +35,12 @@ export class PuppeteerService
action
:
(
page
:
Page
)
=>
Promise
<
T
>
,
)
{
const
page
=
await
this
.
browser
.
newPage
();
await
page
.
goto
(
url
,
{
waitUntil
:
'
networkidle0
'
,
timeout
:
300000
});
const
result
=
await
action
(
page
);
await
page
.
close
();
return
result
;
try
{
await
page
.
goto
(
url
,
{
waitUntil
:
'
networkidle0
'
,
timeout
:
300000
});
return
await
action
(
page
);
}
finally
{
await
page
.
close
();
}
}
render
(
url
:
string
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment