Compare commits

..

No commits in common. "f23bb48fa14e550edaea7b23fbf6232e04c73e03" and "b5157623caa0375e51539e7701d1fe21ff184997" have entirely different histories.

5 changed files with 1 additions and 44 deletions

View file

@ -1,13 +0,0 @@
/target
/out
/.env
/api.http
/emgauwa-*.sqlite
/emgauwa-*.sqlite-*
/emgauwa-*.json
/.dockerignore
/Dockerfile
/docker-bake.hcl

BIN
Cargo.lock generated

Binary file not shown.

View file

@ -25,7 +25,7 @@ serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio", "macros"] }
sqlx = { version = "0.7", features = ["sqlite", "runtime-tokio", "macros", "chrono"] }
futures = "0.3"
tokio = { version = "1.36", features = ["rt", "rt-multi-thread"] }

View file

@ -1,15 +0,0 @@
FROM rust:1 as builder
RUN rustup target add x86_64-unknown-linux-musl && \
apt update && \
apt install -y musl-tools musl-dev && \
update-ca-certificates
COPY ./ /emgauwa
WORKDIR /emgauwa
RUN cargo build --target x86_64-unknown-linux-musl --release
FROM scratch
COPY --from=builder /emgauwa/target/x86_64-unknown-linux-musl/release/emgauwa-core /usr/bin/emgauwa-core
CMD ["/usr/bin/emgauwa-core"]

View file

@ -1,15 +0,0 @@
variable "REG" {
default = "registry.serguzim.me"
}
variable "REPO" {
default = "emgauwa/core"
}
variable "TAG" {
default = "latest"
}
target "default" {
output = ["type=docker"]
dockerfile = "./Dockerfile"
tags = ["${REG}/${REPO}:latest", "${REG}/${REPO}:${TAG}"]
}