File tree Expand file tree Collapse file tree 4 files changed +22
-8
lines changed Expand file tree Collapse file tree 4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -53,3 +53,11 @@ httptest = "0.16.1"
53
53
lazy_static = " 1.5.0"
54
54
predicates = " 3.1.2"
55
55
pretty_assertions_sorted = " 1.2.3"
56
+
57
+ [profile .release ]
58
+ # source: https://lafor.ge/http-smol/#rust
59
+ strip = true
60
+ opt-level = " z"
61
+ lto = true
62
+ codegen-units = 1
63
+ panic = " abort"
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ ARG TARGETPLATFORM
8
8
WORKDIR /app
9
9
COPY \
10
10
--chown=1000:1000 \
11
+ --chmod=555 \
11
12
--link \
12
- "builds/${TARGETPLATFORM}/dofigen" "/bin/"
13
+ "builds/${TARGETPLATFORM}/dofigen" "/bin/dofigen "
13
14
USER 1000:1000
14
- ENTRYPOINT ["dofigen" ]
15
+ ENTRYPOINT ["/bin/ dofigen" ]
15
16
CMD ["--help" ]
Original file line number Diff line number Diff line change @@ -7,24 +7,27 @@ effective: |
7
7
copy:
8
8
- paths:
9
9
- builds/${TARGETPLATFORM}/dofigen
10
- target: /bin/
10
+ target: /bin/dofigen
11
+ chmod: '555'
11
12
entrypoint:
12
- - dofigen
13
+ - /bin/ dofigen
13
14
cmd:
14
15
- --help
15
16
images: {}
16
17
resources:
17
18
dofigen.yml:
18
- hash: 160f8547a6b42e0996778ad72c6a73328f8460e826475def77213acb69f45284
19
+ hash: 07744cc5d5e65e7ebf07298fca4f239bf7296f9109c0fb60b177236291ccf61c
19
20
content: |
20
21
# Runtime
21
22
workdir: /app
23
+ # volume: /app
22
24
arg:
23
25
TARGETPLATFORM: ""
24
26
copy:
25
27
- paths: builds/${TARGETPLATFORM}/dofigen
26
- target: /bin/
27
- entrypoint: dofigen
28
+ target: /bin/dofigen
29
+ chmod: "555"
30
+ entrypoint: /bin/dofigen
28
31
cmd: --help
29
32
context:
30
33
- "/builds"
Original file line number Diff line number Diff line change 1
1
# Runtime
2
2
workdir : /app
3
+ # volume: /app
3
4
arg :
4
5
TARGETPLATFORM : " "
5
6
copy :
6
7
- paths : builds/${TARGETPLATFORM}/dofigen
7
- target : /bin/
8
+ target : /bin/dofigen
9
+ chmod : " 555"
8
10
entrypoint : /bin/dofigen
9
11
cmd : --help
10
12
context :
You can’t perform that action at this time.
0 commit comments