dotenvx-dotenvx
SUCCESS
5m 15s
History Source
SummaryIterations1Transcript3Dockerfile
Dockerfile22 lines · 464 chars
# Use base image
FROM node:lts

# Set work directory
WORKDIR /app

# Install dependencies (including dev) to allow building from source
COPY package.json package-lock.json ./
RUN npm ci || npm install

# Copy the remainder of the source code
COPY . .

# Build the project from source
RUN node esbuild.js

# Optional: prune production dependencies to reduce image size
RUN npm prune --production

# Default command: run the built CLI
CMD ["node", "build/index.js"]