diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..41e0a30 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +target +dockerfile +.dockerignore +.git +.gitignore diff --git a/assets/static/image.png b/assets/static/image.png deleted file mode 100644 index fa5a095..0000000 Binary files a/assets/static/image.png and /dev/null differ diff --git a/assets/views/website/index.html b/assets/views/website/index.html index 14a8aab..8edd4c0 100644 --- a/assets/views/website/index.html +++ b/assets/views/website/index.html @@ -87,9 +87,13 @@

Skills 🛠️

- {% for skill in skills %}
- {{ - chip::chip(text=skill.name) }}
{%endfor%} +
+ {% for skill in skills %}
+ {{ chip::chip(text=skill.name) }} +
+ {%endfor%} +

Experience 📈

@@ -139,9 +143,9 @@ date(format="%d-%m-%Y") }} - {{ job.end_date | date(format="%d-%m-%Y") }} {% endif %} -

+

diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..e98c324 --- /dev/null +++ b/dockerfile @@ -0,0 +1,18 @@ +FROM rust:1.74-slim as builder + +WORKDIR /usr/src/ + +COPY . . + +RUN cargo build --release + +FROM debian:bookworm-slim + +WORKDIR /usr/app + +COPY --from=builder /usr/src/assets/static /usr/app/assets/static +COPY --from=builder /usr/src/assets/static/404.html /usr/app/assets/static/404.html +COPY --from=builder /usr/src/config /usr/app/config +COPY --from=builder /usr/src/target/release/gabrielkaszewski_rs-cli /usr/app/gabrielkaszewski_rs-cli + +ENTRYPOINT ["/usr/app/gabrielkaszewski_rs-cli"] \ No newline at end of file diff --git a/migration/src/lib.rs b/migration/src/lib.rs index 65d3e51..81ea190 100644 --- a/migration/src/lib.rs +++ b/migration/src/lib.rs @@ -17,13 +17,13 @@ impl MigratorTrait for Migrator { fn migrations() -> Vec> { vec![ // inject-below + Box::new(m20220101_000001_users::Migration), + Box::new(m20241029_235230_skills::Migration), + Box::new(m20241030_002154_jobs::Migration), + Box::new(m20241030_024340_projects::Migration), + Box::new(m20241030_024830_data::Migration), Box::new(m20241110_011041_add_is_highlighted_to_project::Migration), Box::new(m20241106_005545_project_thumbnails::Migration), - Box::new(m20241030_024830_data::Migration), - Box::new(m20241030_024340_projects::Migration), - Box::new(m20241030_002154_jobs::Migration), - Box::new(m20241029_235230_skills::Migration), - Box::new(m20220101_000001_users::Migration), ] } } \ No newline at end of file