Skip to content

Commit

Permalink
Fix Dockerfile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
seakayone committed Jul 25, 2024
1 parent a61c0c2 commit faf509d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM rust:1-slim-bookworm as builder-rs
FROM rust:1-slim-bookworm AS builder-rs
WORKDIR /dsp-meta
COPY . .
RUN cargo install --path ./dsp-meta-cmd

FROM node:21-bookworm-slim as builder-node
FROM node:21-bookworm-slim AS builder-node
WORKDIR /dsp-meta
COPY . .
RUN cd web-frontend && yarn install && yarn run build
Expand Down
7 changes: 5 additions & 2 deletions dsp-meta/src/repo/service/project_metadata_repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ use std::collections::HashMap;
use std::fs::File;
use std::path::Path;
use std::sync::{Arc, RwLock};
use log::info;

use dsp_domain::metadata::value::Shortcode;
use log::info;
use tracing::{instrument, trace};

use crate::api::convert::serde::draft_model::{DraftMetadata, DraftProjectStatus};
Expand Down Expand Up @@ -90,7 +91,9 @@ impl RepositoryContract<DraftMetadata, Shortcode, DspMetaError> for ProjectMetad
} else {
true
}
}).cloned().collect::<Vec<DraftMetadata>>();
})
.cloned()
.collect::<Vec<DraftMetadata>>();
let total = values.len();
let data = values
.into_iter()
Expand Down

0 comments on commit faf509d

Please sign in to comment.