Skip to content

Commit 0d650fa

Browse files
committed
Another attempt
1 parent 5a40686 commit 0d650fa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sha1 = "0.10.5"
3434
hex = "0.4.3"
3535

3636
[[bin]]
37-
name = "camo2"
37+
name = "camo-proxy"
3838
path = "src/bin/standalone.rs"
3939
required-features = ["standalone"]
4040

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ COPY ./ /home/rust/src
88
RUN --mount=type=cache,target=/home/rust/src/target \
99
--mount=type=cache,target=/root/.cargo/registry \
1010
--mount=type=cache,target=/root/.cargo/git \
11-
cargo build --release --no-default-features --features 'standalone' --bin standalone && \
12-
mv /home/rust/src/target/x86_64-unknown-linux-musl/release/standalone /standalone
11+
cargo build --release --no-default-features --features 'standalone' --bin camo-proxy && \
12+
mv /home/rust/src/target/x86_64-unknown-linux-musl/release/camo-proxy /camo-proxy
1313

1414
FROM scratch
1515

@@ -19,12 +19,12 @@ LABEL org.opencontainers.image.title="camo-service" \
1919
org.opencontainers.image.source="https://github.com/Lantern-chat/camo"
2020

2121
USER 1001:1001
22-
COPY --from=build /standalone /standalone
22+
COPY --from=build /camo-proxy /camo-proxy
2323

2424
ENV CAMO_BIND_ADDRESS="127.0.0.1:8050"
2525
# Example key, replace with your own
2626
ENV CAMO_SIGNING_KEY="59d273a2641327d005b255bb7dc89a9f"
2727

2828
EXPOSE 8050/tcp
2929

30-
ENTRYPOINT ["/standalone"]
30+
ENTRYPOINT ["/camo-proxy"]

0 commit comments

Comments
 (0)