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