Compare commits
No commits in common. "be1c4031124784fc3acbeb57d121d91673ec241c" and "ac2a6444ef9ee010e70752dce1c93d7a2b063f39" have entirely different histories.
be1c403112
...
ac2a6444ef
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,4 @@
|
||||||
FROM rust:1.70 as builder
|
FROM rust:1.64 as builder
|
||||||
|
|
||||||
# Create a new empty project.
|
# Create a new empty project.
|
||||||
RUN USER=root cargo new --bin tildes-statistics
|
RUN USER=root cargo new --bin tildes-statistics
|
||||||
|
@ -18,7 +18,7 @@ COPY node_modules/modern-normalize node_modules/modern-normalize
|
||||||
RUN rm target/release/deps/tildes_statistics*
|
RUN rm target/release/deps/tildes_statistics*
|
||||||
|
|
||||||
# Build the executable with actual source code.
|
# Build the executable with actual source code.
|
||||||
RUN cargo install --locked --offline --path .
|
RUN cargo install --offline --path .
|
||||||
|
|
||||||
# Copy the executable to a smaller final image.
|
# Copy the executable to a smaller final image.
|
||||||
FROM debian:bullseye-slim
|
FROM debian:bullseye-slim
|
||||||
|
|
|
@ -60,7 +60,7 @@ impl UserCountChart {
|
||||||
|
|
||||||
let chart_root = chart_root
|
let chart_root = chart_root
|
||||||
.margin(20, 20, 20, 20)
|
.margin(20, 20, 20, 20)
|
||||||
.titled("User Count", text_style(30))?;
|
.titled("Tildes User Count", text_style(30))?;
|
||||||
|
|
||||||
chart_root.fill(&BACKGROUND_2)?;
|
chart_root.fill(&BACKGROUND_2)?;
|
||||||
|
|
||||||
|
|
|
@ -65,5 +65,5 @@ pub fn get_env_var(key: &str) -> Result<String> {
|
||||||
|
|
||||||
/// Create a [`NaiveDate`] for today.
|
/// Create a [`NaiveDate`] for today.
|
||||||
pub fn today() -> NaiveDate {
|
pub fn today() -> NaiveDate {
|
||||||
Utc::now().date_naive()
|
Utc::now().date().naive_utc()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue