Skip to content

Commit 64def09

Browse files
committed
Remove building restarter binary from docker
1 parent a94c1f4 commit 64def09

File tree

3 files changed

+2
-30
lines changed

3 files changed

+2
-30
lines changed

Dockerfile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,8 @@ RUN --mount=type=bind,source=crates,target=crates \
1919
--mount=type=bind,source=Cargo.lock,target=Cargo.lock \
2020
--mount=type=cache,target=/usr/src/myapp/target \
2121
cargo build --release --workspace \
22-
&& cp target/release/restarter /restarter \
2322
&& cp target/release/seitai /seitai
2423

25-
FROM scratch AS restarter
26-
LABEL io.github.hexium310.seitai.app=restarter
27-
LABEL org.opencontainers.image.source=https://github.com/hexium310/seitai
28-
COPY --from=runtime /etc/ssl/certs/ /etc/ssl/certs/
29-
COPY --from=runtime /lib/x86_64-linux-gnu/libc.so* /lib/x86_64-linux-gnu/
30-
COPY --from=runtime /lib/x86_64-linux-gnu/libcrypto.so* /lib/x86_64-linux-gnu/
31-
COPY --from=runtime /lib/x86_64-linux-gnu/libgcc_s.so* /lib/x86_64-linux-gnu/
32-
COPY --from=runtime /lib/x86_64-linux-gnu/libm.so* /lib/x86_64-linux-gnu/
33-
COPY --from=runtime /lib/x86_64-linux-gnu/libssl.so* /lib/x86_64-linux-gnu/
34-
COPY --from=runtime /lib64/ld-linux-x86-64.so* /lib64/
35-
COPY --from=builder /restarter /
36-
CMD ["/restarter"]
37-
3824
FROM scratch AS seitai
3925
LABEL io.github.hexium310.seitai.app=seitai
4026
LABEL org.opencontainers.image.source=https://github.com/hexium310/seitai

compose.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ services:
2222
- type: bind
2323
source: seitai
2424
target: /usr/src/myapp/seitai
25-
- type: bind
26-
source: restarter
27-
target: /usr/src/myapp/restarter
2825
command: /bin/sh -c 'cargo run -p seitai'
2926
environment:
3027
DISCORD_TOKEN:
@@ -53,10 +50,7 @@ services:
5350
- type: bind
5451
source: seitai
5552
target: /usr/src/myapp/seitai
56-
- type: bind
57-
source: restarter
58-
target: /usr/src/myapp/restarter
59-
command: /bin/sh -c 'cargo run -p restarter'
53+
command: /bin/sh -c 'cargo run -- restarter'
6054
environment:
6155
DISCORD_TOKEN:
6256

docker-bake.hcl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
11
group "default" {
2-
targets = ["restarter", "seitai"]
2+
targets = ["seitai"]
33
}
44

55
variable "VERSION" {
66
default = "latest"
77
}
88

9-
target "restarter" {
10-
target = "restarter"
11-
tags = [
12-
"ghcr.io/hexium310/restarter:latest",
13-
"ghcr.io/hexium310/restarter:${VERSION}",
14-
]
15-
}
16-
179
target "seitai" {
1810
target = "seitai"
1911
tags = [

0 commit comments

Comments
 (0)