update Dockerfile

This commit is contained in:
MarSeventh
2025-05-21 16:55:44 +08:00
parent c19be9238e
commit d556595d83
2 changed files with 5 additions and 11 deletions

View File

@@ -46,4 +46,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
no-cache: true

View File

@@ -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"]