AikidoSec-safe-chain/test/e2e/Dockerfile
2025-09-05 11:33:08 +02:00

32 lines
635 B
Docker

FROM node:24-bookworm as builder
ENV CI=true
# Set working directory
WORKDIR /app
# Copy package files first for better caching
COPY packages/safe-chain/package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application
COPY packages/safe-chain ./
# Build the application
RUN npm --no-git-tag-version version 1.0.0 --allow-same-version
RUN npm pack
FROM mcr.microsoft.com/devcontainers/javascript-node:22-bookworm as runner
WORKDIR /app
COPY --from=builder /app/*.tgz /app/
# # Install the application package globally
RUN npm install -g /app/*.tgz
RUN mkdir /testapp
RUN cd /testapp && npm init -y