Skip to content

Commit f161dbc

Browse files
committed
Optimize entry binary
1 parent 418920c commit f161dbc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7+
<LangVersion>latest</LangVersion>
8+
<ChromeVersion Condition=" '$(Configuration)' == 'Debug' ">125.0.6422.60</ChromeVersion>
79
</PropertyGroup>
810

911
</Project>

Dockerfile.BuildLinux64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ RUN /chrome/chrome --no-sandbox --headless --screenshot=/chrome-screenshot.png -
7272
# We need this wrapper to start chrome with additional env variables
7373
FROM gcc:latest as entry-builder
7474
COPY main.c .
75-
RUN gcc -o /chrome-entry main.c -static
75+
RUN gcc -o /chrome-entry main.c -static -O3
7676

7777

7878
#################################

0 commit comments

Comments
 (0)