WIP: Dodaj wsparcie dla Dockera #128

Draft
d33tah wants to merge 44 commits from d33tah/rentgen:develop into develop
2 changed files with 4 additions and 11 deletions
Showing only changes of commit 00e853de7a - Show all commits

View File

@ -4,9 +4,6 @@
# Build stage # Build stage
FROM node:lts AS builder FROM node:lts AS builder
# Optional: run tests during build (typecheck + lint)
ARG RUN_TESTS=false
WORKDIR /app WORKDIR /app
# Copy package files for dependency installation (better layer caching) # Copy package files for dependency installation (better layer caching)
@ -24,13 +21,9 @@ RUN npm run build
# Create the package # Create the package
RUN npm run create-package RUN npm run create-package
# Optional: run quality checks # Test stage - for running quality checks
RUN if [ "$RUN_TESTS" = "true" ]; then \ FROM builder AS test
echo "Running TypeScript type checking..."; \ RUN npm run typecheck && npm run lint
npm run typecheck; \
echo "Running web-ext lint..."; \
npm run lint; \
fi
# Artifacts stage - only contains the built artifacts (for --output) # Artifacts stage - only contains the built artifacts (for --output)
FROM scratch AS artifacts FROM scratch AS artifacts

View File

@ -54,7 +54,7 @@ This will build the extension and extract the `.zip` file to the `artifacts/` di
### Build with tests (typecheck + lint) ### Build with tests (typecheck + lint)
```bash ```bash
docker build --build-arg RUN_TESTS=true -t rentgen . docker build --target test -t rentgen-test .
``` ```
### Traditional build (creates full development environment) ### Traditional build (creates full development environment)