Move to a single Dockerfile

This commit is contained in:
Mylloon 2023-03-24 14:07:27 +01:00
parent acaab12450
commit 98439286a1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 0 additions and 23 deletions

View file

@ -7,7 +7,6 @@ pipeline:
auto_tag: true auto_tag: true
registry: git.mylloon.fr registry: git.mylloon.fr
username: ${CI_REPO_OWNER} username: ${CI_REPO_OWNER}
dockerfile: Docker/Dockerfile.debian
password: password:
from_secret: cb_token from_secret: cb_token
when: when:

View file

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