Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

rust dockerfile

FROM rust:slim-buster as builder

RUN cargo new --bin rust-and-docker
WORKDIR ./rust-and-docker
COPY ./Cargo.toml ./Cargo.toml
COPY ./src ./src
RUN cargo build --release

// if you need sql or postgres
// RUN apt-get -y update && 
// apt-get -y upgrade && 
// apt -y install ca-certificate libssl-dev libpq-dev sqlit3

FROM debian:buster-slim
COPY --from=builder /rust-and-docker/target/release/rust-and-docker ./rust-and-docker
// use cargo.toml name instead rust-and-docker
CMD ["./rust-and-docker"]
Comment

PREVIOUS NEXT
Code Example
Shell :: linux terminal show processes 
Shell :: react-darkmode-toggler 
Shell :: Server unable to read htaccess file 
Shell :: linux list all system groups in order 
Shell :: command to create a user in linux 
Shell :: ubuntu remove application icon 
Shell :: brew check installed packages version 
Shell :: sourcetree permission denied (publickey) github mac 
Shell :: create a new branch and publish gitub 
Shell :: git remove file from commit 
Shell :: bash file comment 
Shell :: limits.h: No such file or directory 
Shell :: git apply exclude file 
Shell :: laravel permission ubuntu lamp 
Shell :: git message 
Shell :: bash command to open file explorer 
Shell :: command not found mvn 
Shell :: npm install express 
Shell :: How to change default install location for pip 
Shell :: check go is installed mac 
Shell :: xcrun: error: invalid active developer path 
Shell :: install vault 
Shell :: add key file to ssh 
Shell :: path/to/sdkmanager --install "cmdline-tools;latest" 
Shell :: open current folder in terminal linux 
Shell :: git refresh .gitignore 
Shell :: install ubuntu on wsl 
Shell :: comparing file content bash 
Shell :: shell script to find sum of n numbers using for loop 
Shell :: install adminlte 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =