-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
krhougs
committed
Oct 25, 2022
1 parent
cf8ea4c
commit be56477
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
doc | ||
**target* | ||
.idea/ | ||
Dockerfile | ||
.dockerignore | ||
.local | ||
.env* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM rust:1.64 as builder | ||
|
||
WORKDIR /app | ||
COPY . /app | ||
RUN cargo build --locked --release | ||
|
||
FROM debian:11-slim | ||
COPY --from=builder /app/target/release/service_worker /usr/local/bin | ||
COPY --from=builder /app/target/release/service_broker /usr/local/bin | ||
|
||
RUN useradd -m -u 1000 -U -s /bin/sh -d /app app && \ | ||
ldd /usr/local/bin/service_worker && \ | ||
ldd /usr/local/bin/service_broker | ||
|
||
USER app | ||
ENV RUST_LOG="service_network=debug,service_broker=debug,service_worker=debug" |