A custom NodeJS image optimized for enterprise-grade workloads, built on Amazon Linux 2023 minimal.
FROM sidh4u/node:latest
# Set working directory inside container
WORKDIR /app
# Copy only package.json and lock file first for caching
COPY package*.json ./
# Install dependencies (add `--production` to skip dev deps)
RUN npm install --production
# Copy application code
COPY . .
# Expose app port (if needed)
EXPOSE 3000
# Default command
CMD ["node", "index.js"]
Content type
Image
Digest
sha256:a4635fb86…
Size
148.4 MB
Last updated
over 1 year ago
docker pull sidh4u/node