update docker

This commit is contained in:
iLay 2024-12-08 09:25:18 +08:00
parent f60b07700f
commit b27a5a61fa
3 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ jobs:
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/s390x
file: ./Dockerfile file: ./Dockerfile
push: true push: true
tags: ghcr.io/${{ env.OWNER_LC }}/alipan-tv-token:latest tags: ghcr.io/${{ env.OWNER_LC }}/alipan-tv-token:latest

View File

@ -1,6 +1,6 @@
# 使用官方的 Node.js 镜像作为基础镜像 # 使用官方的 Node.js 镜像作为基础镜像
FROM oven/bun:latest FROM node:22.12.0-alpine3.20
# 设置工作目录 # 设置工作目录
WORKDIR /app WORKDIR /app
@ -14,4 +14,4 @@ COPY .output /app/.output
EXPOSE 3000 EXPOSE 3000
# 启动应用 # 启动应用
CMD ["bun",".output/server/index.mjs"] CMD ["node",".output/server/index.mjs"]

View File

@ -16,7 +16,7 @@
<div class="space-y-8"> <div class="space-y-8">
<div class="space-y-2"> <div class="space-y-2">
<div class="relative"> <div class="relative">
<textarea id="accessToken" v-model="accessToken" <a-textarea :rows="5" id="accessToken" :value="accessToken"
class="w-full rounded font-mono text-sm leading-normal border-2 border-dashed border-gray-300 p-3 pr-10 bg-white resize-none focus:outline-none focus:border-blue-500 transition-colors min-h-[120px] whitespace-pre-wrap overflow-auto placeholder:text-gray-400" class="w-full rounded font-mono text-sm leading-normal border-2 border-dashed border-gray-300 p-3 pr-10 bg-white resize-none focus:outline-none focus:border-blue-500 transition-colors min-h-[120px] whitespace-pre-wrap overflow-auto placeholder:text-gray-400"
readonly spellcheck="false" placeholder="访问令牌" /> readonly spellcheck="false" placeholder="访问令牌" />
<button data-clipboard-target="#accessToken" :class="`absolute top-2 right-2 p-1 rounded transition-colors ${hasAccessToken <button data-clipboard-target="#accessToken" :class="`absolute top-2 right-2 p-1 rounded transition-colors ${hasAccessToken
@ -34,7 +34,7 @@
<div class="space-y-2"> <div class="space-y-2">
<div class="relative"> <div class="relative">
<textarea id="refreshToken" v-model="refreshToken" <a-textarea :rows="4" id="refreshToken" :value="refreshToken"
class="w-full rounded font-mono text-sm leading-normal border-2 border-dashed border-gray-300 p-3 pr-10 bg-white resize-none focus:outline-none focus:border-blue-500 transition-colors min-h-[120px] whitespace-pre-wrap overflow-auto placeholder:text-gray-400" class="w-full rounded font-mono text-sm leading-normal border-2 border-dashed border-gray-300 p-3 pr-10 bg-white resize-none focus:outline-none focus:border-blue-500 transition-colors min-h-[120px] whitespace-pre-wrap overflow-auto placeholder:text-gray-400"
readonly spellcheck="false" placeholder="刷新令牌" /> readonly spellcheck="false" placeholder="刷新令牌" />
<button data-clipboard-target="#refreshToken" :class="`absolute top-2 right-2 p-1 rounded transition-colors ${hasRefreshToken <button data-clipboard-target="#refreshToken" :class="`absolute top-2 right-2 p-1 rounded transition-colors ${hasRefreshToken