mirror of
https://codeberg.org/icewind/log-normalizer.git
synced 2026-06-03 05:44:06 +02:00
dockerfile
This commit is contained in:
parent
5f9b32157e
commit
5778c6164b
3 changed files with 18 additions and 0 deletions
2
.dockerignore
Normal file
2
.dockerignore
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
target
|
||||
.git
|
||||
|
|
@ -4,6 +4,10 @@ version = "0.1.0"
|
|||
authors = ["Robin Appelman <robin@icewind.nl>"]
|
||||
edition = "2018"
|
||||
|
||||
[[bin]]
|
||||
name = "log-normalizer"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
sqlx = { version = "0.3", default_features = false, features = ["macros", "postgres", "json", "runtime-tokio", "chrono"] }
|
||||
dotenv = "0.15.0"
|
||||
|
|
|
|||
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
FROM ekidd/rust-musl-builder AS build
|
||||
|
||||
ADD . ./
|
||||
RUN sudo chown -R rust:rust .
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
COPY --from=build /home/rust/src/target/x86_64-unknown-linux-musl/release/log-normalizer /
|
||||
|
||||
CMD ["/log-normalizer"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue