Compare commits
2 Commits
f41ccda54d
...
26db356fdd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26db356fdd | ||
|
|
8f846ba125 |
14
Dockerfile
14
Dockerfile
@ -4,9 +4,6 @@
|
|||||||
# Build and extract artifacts directly:
|
# Build and extract artifacts directly:
|
||||||
# docker buildx build . --output artifacts
|
# docker buildx build . --output artifacts
|
||||||
#
|
#
|
||||||
# Build with tests (typecheck + lint):
|
|
||||||
# docker build --build-arg RUN_TESTS=true -t rentgen .
|
|
||||||
#
|
|
||||||
# Or traditional build (creates full development environment):
|
# Or traditional build (creates full development environment):
|
||||||
# docker build -t rentgen .
|
# docker build -t rentgen .
|
||||||
# docker run --rm rentgen ls -lh /app/web-ext-artifacts/
|
# docker run --rm rentgen ls -lh /app/web-ext-artifacts/
|
||||||
@ -18,9 +15,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)
|
||||||
@ -38,14 +32,6 @@ RUN npm run build
|
|||||||
# Create the package
|
# Create the package
|
||||||
RUN npm run create-package
|
RUN npm run create-package
|
||||||
|
|
||||||
# Optional: run quality checks
|
|
||||||
RUN if [ "$RUN_TESTS" = "true" ]; then \
|
|
||||||
echo "Running TypeScript type checking..."; \
|
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user