🦄 refactor: convert to TypeScript #174

This commit is contained in:
imsyy
2024-09-26 11:57:23 +08:00
parent 8a842aa6d6
commit 2b6d68ecbd
508 changed files with 32112 additions and 30991 deletions

View File

@@ -1,5 +1,5 @@
# build
FROM node:18-alpine as builder
FROM node:20-alpine AS builder
RUN apk update && apk add --no-cache git
@@ -11,12 +11,13 @@ RUN npm install
COPY . .
# add .env.example to .env
RUN [ ! -e ".env" ] && cp .env.example .env || true
RUN npm run build
# nginx
FROM nginx:1.25.3-alpine-slim as app
FROM nginx:1.27-alpine-slim AS app
COPY --from=builder /app/out/renderer /usr/share/nginx/html