aksakalli-gtop
SUCCESS
21m 46s
History Source
SummaryIterations2Transcript41Dockerfile
Dockerfile26 lines · 551 chars
FROM node:22.22.3-alpine3.23

ENV LANG=en_US.utf8 \
    TERM=xterm-256color

# Runtime dependencies
RUN apk --no-cache add procps

# Set working directory
WORKDIR /app

# Install production dependencies (and allow npm to prune later to remove devDeps)
COPY package.json package-lock.json ./
RUN npm ci
RUN npm prune --production

# Copy source files
COPY lib lib
COPY bin bin

# Ensure CLI script is executable
RUN chmod +x bin/gtop || true

# Run the app through Node to avoid TTY requirements in some environments
ENTRYPOINT ["node", "lib/gtop.js"]