From 98439286a157752560167bc52cc783364b95204a Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 24 Mar 2023 14:07:27 +0100 Subject: [PATCH] Move to a single Dockerfile --- .gitea/workflows/publish.yml | 1 - Docker/Dockerfile.debian | 22 ---------------------- Docker/Dockerfile.alpine => Dockerfile | 0 3 files changed, 23 deletions(-) delete mode 100644 Docker/Dockerfile.debian rename Docker/Dockerfile.alpine => Dockerfile (100%) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index f6faca4..286dea2 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -7,7 +7,6 @@ pipeline: auto_tag: true registry: git.mylloon.fr username: ${CI_REPO_OWNER} - dockerfile: Docker/Dockerfile.debian password: from_secret: cb_token when: diff --git a/Docker/Dockerfile.debian b/Docker/Dockerfile.debian deleted file mode 100644 index 2435fcf..0000000 --- a/Docker/Dockerfile.debian +++ /dev/null @@ -1,22 +0,0 @@ -# syntax=docker/dockerfile:1 - -FROM node:19.7.0-bullseye-slim - -ENV DOCKERIZED=1 -RUN mkdir /config -RUN chown node:node /config - -RUN apt-get update -RUN apt-get install -y dumb-init -ENV NODE_ENV=production -WORKDIR /app - -COPY --chown=node:node . . - -RUN npm ci --only=production -RUN npx tsc - -RUN rm -r src/ tsconfig.json -RUN npm uninstall typescript @types/sqlite3 - -CMD ["dumb-init", "node", "./dist/index.js"] diff --git a/Docker/Dockerfile.alpine b/Dockerfile similarity index 100% rename from Docker/Dockerfile.alpine rename to Dockerfile