cd /news/developer-tools/preparar-imagen-de-docker-node-app · home topics developer-tools article
[ARTICLE · art-12788] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Preparar imagen de Docker - Node App

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.

read1 min views54 publishedJul 6, 2022
docker-compose -f docker-compose.prod.yaml --env-file .env.prod up --build
docker-compose -f docker-compose.prod.yaml --env-file .env.prod up

Por defecto, docker-compose usa el archivo .env , por lo que si tienen el archivo .env y lo configuran con sus variables de entorno de producción, bastaría con docker-compose -f docker-compose.prod.yaml up --build

── more in #developer-tools 4 stories · sorted by recency
── more on @docker 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/preparar-imagen-de-d…] indexed:0 read:1min 2022-07-06 ·