Fix docker build for arm

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/1/head
trivernis 4 years ago
parent 4766ac3f52
commit e42eee2c54
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -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

@ -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

@ -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;

Loading…
Cancel
Save