Skip to content

Commit d247155

Browse files
committed
Create Dockerfile
1 parent e181c6a commit d247155

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "locatarr-json-to-readme"
2+
name = "locatarr-table-generator"
33
version = "0.1.0"
44
edition = "2021"
55

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM rust:1-bookworm AS builder
2+
3+
WORKDIR /locatarr-table-generator
4+
5+
COPY Cargo.toml .
6+
COPY Cargo.lock .
7+
COPY src src
8+
9+
RUN cargo build --release
10+
11+
FROM gcr.io/distroless/cc
12+
13+
COPY --from=builder /locatarr-table-generator/target/release/locatarr-table-generator /locatarr-table-generator
14+
15+
ENTRYPOINT [ "/locatarr-table-generator" ]

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use clap::Parser;
22
use std::{path::PathBuf, process::ExitCode};
33

4-
use locatarr_json_to_readme::{generate_md_table, models::Applications};
4+
use locatarr_table_generator::{generate_md_table, models::Applications};
55

66
/// Cli derives a clap parser to allow us to handle command line arguments
77
#[derive(Parser)]

0 commit comments

Comments
 (0)