From d556595d83517521a7c5a17275e307af36ecb153 Mon Sep 17 00:00:00 2001 From: MarSeventh <1193267292@qq.com> Date: Wed, 21 May 2025 16:55:44 +0800 Subject: [PATCH] update Dockerfile --- .github/workflows/docker-publish.yml | 1 - Dockerfile | 15 +++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 41bbcc3..2414264 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -46,4 +46,3 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - no-cache: true diff --git a/Dockerfile b/Dockerfile index 1dbc931..8c4a232 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,14 @@ -FROM ubuntu:22.04 +FROM node:22 -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt update && \ - apt install -y curl gnupg ca-certificates && \ - curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \ - apt install -y nodejs && \ - apt clean && rm -rf /var/lib/apt/lists/* +RUN apt-get update && \ + apt-get install -y --no-install-recommends ca-certificates curl && \ + update-ca-certificates && \ + rm -rf /var/lib/apt/lists/* WORKDIR /app - COPY . . RUN npm install EXPOSE 8080 - CMD ["npm", "run", "start"]