Created
September 21, 2021 15:13
-
-
Save MihailPreis/a2bbcae1e27d5490357123bcd442772b to your computer and use it in GitHub Desktop.
Build rust app for Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
WORKDIR /app | |
RUN apt update | |
RUN apt-get install -y \ | |
build-essential \ | |
pkg-config \ | |
libssl-dev \ | |
curl | |
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y | |
ENV PATH="/root/.cargo/bin:${PATH}" | |
COPY ./ ./ | |
RUN cargo build --release --locked |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment