Skip to content

Latest commit

 

History

History

rust

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Rust server Dockerfile Example

Description

This repository provides a Dockerfile example for containerizing a Rust axum (hyper) server.

Getting Started

  1. Copy the Dockerfile and files used in the Dockerfile in your application
  2. Build the Docker image by running the following command:
docker build -t image-name .
  1. Once the image is built successfully, you can run a container using the following command:
docker run image-name

If the container needs specifying port and volumes if the container needed it.

  1. Test your application container

Contributing

Contributions to this Dockerfile example are welcome! If you have any improvements or suggestions, feel free to submit a pull request.

Please ensure that your changes align with the best practices and conventions outlined in the Docker and language/framework documentation.

Disclaimer

The Dockerfile example provided in this repository is for educational and reference purposes. It is important to review and adapt it to meet the specific security and performance requirements of your case before using it in a production environment.