diff --git a/Dockerfile b/Dockerfile index ae0e643..cc6018e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,14 @@ FROM node:18-alpine WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm ci COPY . . +# This will fail the Docker build if there are TypeScript/build errors RUN npm run build +# Verify that the build directory exists +RUN test -d dist || (echo "Build failed - dist directory not found" && exit 1) + CMD ["sh", "-c", "echo Build completed successfully"]