Sfoglia il codice sorgente

Remove old Dockerfiles

Nicolas Meienberger 3 anni fa
parent
commit
ef982d7e44
2 ha cambiato i file con 0 aggiunte e 88 eliminazioni
  1. 0 52
      packages/system-api/Dockerfile
  2. 0 36
      packages/system-api/Dockerfile.dev

+ 0 - 52
packages/system-api/Dockerfile

@@ -1,52 +0,0 @@
-### BUILD ###
-FROM node:18-buster-slim AS build
-
-WORKDIR /app
-COPY ./package.json ./
-
-RUN npm install --quiet node-gyp -g
-RUN npm install
-
-RUN npm run build
-
-### MAIN ###
-FROM ubuntu:20.04
-ARG DEBIAN_FRONTEND=noninteractive
-
-WORKDIR /app
-
-# Install docker
-RUN apt-get update && apt-get install -y \
-    ca-certificates \
-    curl \
-    gnupg \
-    lsb-release
-
-RUN apt-get install -y \
-    g++ gcc make python
-
-RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
-
-RUN echo \
-    "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
-    $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
-
-RUN apt-get update
-RUN apt-get install -y docker-ce docker-ce-cli containerd.io
-
-# Install node
-RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
-RUN apt-get install -y nodejs
-RUN npm install --quiet node-gyp -g
-
-# Install docker-compose
-RUN curl -L "https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-RUN chmod +x /usr/local/bin/docker-compose
-
-COPY ./package.json ./
-
-RUN npm install --production
-
-COPY --from=build /app/dist /app/dist
-
-CMD ["npm", "run", "start"]

+ 0 - 36
packages/system-api/Dockerfile.dev

@@ -1,36 +0,0 @@
-FROM ubuntu:20.04
-ARG DEBIAN_FRONTEND=noninteractive
-
-WORKDIR /app
-
-# Install docker
-RUN apt-get update && apt-get install -y \
-    ca-certificates \
-    curl \
-    gnupg \
-    lsb-release
-
-RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
-
-RUN echo \
-    "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
-    $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
-
-RUN apt-get update
-RUN apt-get install -y docker-ce docker-ce-cli containerd.io
-
-# Install node
-RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
-RUN apt-get install -y nodejs
-
-# Install docker-compose
-RUN curl -L "https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-RUN chmod +x /usr/local/bin/docker-compose
-
-COPY ./package.json ./
-
-RUN npm install
-
-COPY ./ ./
-
-CMD ["npm", "run", "dev"]