2020-08-03 03:11:10 +00:00
|
|
|
FROM debian:sid-slim
|
2020-08-03 02:16:30 +00:00
|
|
|
MAINTAINER Alejandro Santillana alejandros714@protonmail.com
|
|
|
|
|
|
|
|
# Pre-reqs for sql and building later on
|
|
|
|
RUN apt-get update && apt-get install -y curl libmysqlclient-dev build-essential
|
2020-08-03 04:56:58 +00:00
|
|
|
RUN apt-get install libssl-dev
|
2020-08-03 02:16:30 +00:00
|
|
|
|
|
|
|
# Installing Nightly version of Rust as mysql_async requires it
|
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
|
|
|
|
sh -s -- -y --default-toolchain nightly-2020-01-24
|
|
|
|
|
|
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
|
|
|
|
RUN cargo install diesel_cli --no-default-features --features mysql
|