fix dockerfile
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 26m24s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 26m24s
This commit is contained in:
parent
c089f62164
commit
8d712249ae
2 changed files with 9 additions and 2 deletions
|
|
@ -5,12 +5,14 @@ ENV PKG_CONFIG_ALLOW_CROSS=1
|
|||
WORKDIR .
|
||||
COPY ./api ./api
|
||||
COPY ./libseptastic/ ./libseptastic/
|
||||
COPY ./api/assets ./assets
|
||||
COPY ./api/templates ./templates
|
||||
|
||||
|
||||
RUN cd api && cargo install --path .
|
||||
RUN cd api && cargo build --release
|
||||
|
||||
ENV RUST_LOG=info
|
||||
ENV EXPOSE_PORT=80
|
||||
|
||||
EXPOSE 80
|
||||
ENTRYPOINT ["./api/septastic_api"]
|
||||
ENTRYPOINT ["/api/target/release/septastic_api"]
|
||||
|
|
|
|||
|
|
@ -196,6 +196,8 @@ impl SeptaFetcher {
|
|||
|
||||
let mut routes = Self::fetch_routes(&version).await?;
|
||||
info!("Discovered {} SEPTA routes", routes.len());
|
||||
|
||||
routes = routes.into_iter().filter(|x| x.release_name == "20250907").collect();
|
||||
|
||||
let route_stops = Self::fetch_route_stops(&mut routes, &version).await?;
|
||||
info!("Stop data for {} stops on {} routes successfully downloaded", route_stops.len(), routes.len());
|
||||
|
|
@ -221,6 +223,9 @@ impl SeptaFetcher {
|
|||
let mut route_map: HashSet<String> = HashSet::new();
|
||||
|
||||
for route in routes.iter() {
|
||||
if route_map.contains(&route.route_id) {
|
||||
error!("Duplicate route found for {}", route.route_id.clone());
|
||||
}
|
||||
route_map.insert(route.route_id.clone());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue