p4-vscode_designer_extension/Dockerfile
2025-12-26 19:28:22 +03:00

26 lines
510 B
Docker

# Use Node.js LTS
FROM node:18-slim
# Install Python 3 and git
RUN apt-get update && apt-get install -y python3 python3-pip git && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy package files
COPY package.json package-lock.json ./
# Install dependencies
RUN npm ci
# Copy source code
COPY . .
# Build the extension
RUN npm run compile
# Install vsce to package the extension
RUN npm install -g @vscode/vsce
# Default command to package the extension
CMD ["vsce", "package", "--out", "extension.vsix"]