Skip to content

Instantly share code, notes, and snippets.

@MihailPreis
Created September 21, 2021 15:13
Show Gist options
  • Save MihailPreis/a2bbcae1e27d5490357123bcd442772b to your computer and use it in GitHub Desktop.
Save MihailPreis/a2bbcae1e27d5490357123bcd442772b to your computer and use it in GitHub Desktop.
Build rust app for Ubuntu 16.04
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