diff --git a/alpine.dockerfile b/alpine.dockerfile index 5751b03..8d35524 100644 --- a/alpine.dockerfile +++ b/alpine.dockerfile @@ -1,5 +1,4 @@ -FROM rust:alpine AS builder -RUN apk add --no-cache libgcc musl-dev +FROM rust AS builder WORKDIR /usr/src RUN USER=root cargo new snekcloud-server WORKDIR /usr/src/snekcloud-server diff --git a/scratch.dockerfile b/scratch.dockerfile index 0f48d06..b35006b 100644 --- a/scratch.dockerfile +++ b/scratch.dockerfile @@ -1,5 +1,4 @@ -FROM rust:alpine AS builder -RUN apk add --no-cache libgcc musl-dev +FROM rust AS builder WORKDIR /usr/src RUN USER=root cargo new snekcloud-server WORKDIR /usr/src/snekcloud-server diff --git a/src/server/mod.rs b/src/server/mod.rs index 276b777..a05e0da 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -4,7 +4,7 @@ use crate::utils::result::{SnekcloudError, SnekcloudResult}; use crate::utils::settings::get_settings; use parking_lot::Mutex; use scheduled_thread_pool::ScheduledThreadPool; -use std::cmp::{max, min}; +use std::cmp::max; use std::collections::HashMap; use std::mem; use std::sync::mpsc::channel;