update sync
This commit is contained in:
@@ -1,14 +1,12 @@
|
|||||||
# Stage 1: build TypeScript
|
# Stage 1: build TypeScript
|
||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV PATH="/app/node_modules/.bin:$PATH"
|
|
||||||
ENV NODE_ENV=development
|
|
||||||
RUN apk add --no-cache python3 make g++
|
RUN apk add --no-cache python3 make g++
|
||||||
COPY package*.json .npmrc ./
|
COPY package*.json .npmrc ./
|
||||||
RUN npm ci --include=dev
|
RUN npm install
|
||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
RUN node node_modules/typescript/bin/tsc && npm prune --production
|
RUN ./node_modules/.bin/tsc && npm prune --production
|
||||||
|
|
||||||
# Stage 2: runtime with Playwright
|
# Stage 2: runtime with Playwright
|
||||||
FROM mcr.microsoft.com/playwright:v1.47.0-jammy
|
FROM mcr.microsoft.com/playwright:v1.47.0-jammy
|
||||||
|
|||||||
Reference in New Issue
Block a user