{"slug": "preparar-imagen-de-docker-node-app", "title": "Preparar imagen de Docker - Node App", "summary": "The article provides instructions for building and running a Docker image for a Node.js application using Docker Compose. It specifies commands that use a production configuration file and an environment file, while noting that if a default `.env` file is configured with production variables, the `--env-file` flag can be omitted. The summary focuses on the technical steps for deploying the application with Docker.", "body_md": "docker-compose -f docker-compose.prod.yaml --env-file .env.prod up --build\ndocker-compose -f docker-compose.prod.yaml --env-file .env.prod up\nPor defecto, docker-compose usa el archivo .env\n, por lo que si tienen el archivo .env y lo configuran con sus variables de entorno de producción, bastaría con\ndocker-compose -f docker-compose.prod.yaml up --build", "url": "https://wpnews.pro/news/preparar-imagen-de-docker-node-app", "canonical_source": "https://gist.github.com/Klerith/e7861738c93712840ab3a38674843490", "published_at": "2022-07-06 15:58:24+00:00", "updated_at": "2026-05-24 01:04:40.650552+00:00", "lang": "en", "topics": ["developer-tools", "cloud-computing"], "entities": ["Docker", "Node.js"], "alternates": {"html": "https://wpnews.pro/news/preparar-imagen-de-docker-node-app", "markdown": "https://wpnews.pro/news/preparar-imagen-de-docker-node-app.md", "text": "https://wpnews.pro/news/preparar-imagen-de-docker-node-app.txt", "jsonld": "https://wpnews.pro/news/preparar-imagen-de-docker-node-app.jsonld"}}