Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 404 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 404 Bytes

Rust Dockerfile template

Introduction

This docker templates demonstrate how to use Dockerfile for your Rust projects.

usage

# build the image
docker build -t rust-dockerfile .

# run the app
docker run --rm -d -p 8080:8080 rust-dockerfile 8080

# successful curl to the application
curl 127.0.0.1:8080 -i

# failing curl to the application
curl 127.0.0.1:8080/something/else -i