Skip to content

Instantly share code, notes, and snippets.

@ruby232
Created April 3, 2024 21:13
Show Gist options
  • Save ruby232/749e6638405d156f296eb523c3567315 to your computer and use it in GitHub Desktop.
Save ruby232/749e6638405d156f296eb523c3567315 to your computer and use it in GitHub Desktop.
Rust con Docker
services:
app:
build: .
volumes:
- .:/app
command: tail -f /etc/hosts # Para que el container se ejecute y puder desarrolar
#command: cargo run
FROM rust:latest
# Instalar dependencias del OS si es necesario
WORKDIR /app
COPY . .
# Si no se quiere instalar ninguna dependencia, comentar esta linea
RUN cargo install --path .
# El CMD depende de lo que se quiera desarrollar
CMD ["app"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment