15 lines
525 B
Docker
15 lines
525 B
Docker
FROM debian:sid-slim
|
|
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
|
|
RUN apt-get install libssl-dev
|
|
|
|
# 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
|