From 84265c33f5c16385bd1b4d0796d8dd4e7c4e5725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:32:49 -0600 Subject: [PATCH] docker --- backend/docker-compose.yml | 11 +++++++++++ backend/dockerfile | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 backend/docker-compose.yml create mode 100644 backend/dockerfile diff --git a/backend/docker-compose.yml b/backend/docker-compose.yml new file mode 100644 index 00000000..2dce13ef --- /dev/null +++ b/backend/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.7' + +services: + api: + build: + context: . + dockerfile: dockerfile + command: npm start + ports: + - 3001:3000 # Map host port 3001 to container port 3000 + # - 9229:9229 # Map host port 9229 to container port 9229 diff --git a/backend/dockerfile b/backend/dockerfile new file mode 100644 index 00000000..bf1a71ef --- /dev/null +++ b/backend/dockerfile @@ -0,0 +1,14 @@ +FROM node + +WORKDIR /api + +RUN apt-get update && \ + apt-get install -y wget gnupg && \ + wget -qO - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \ + echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \ + apt-get update && \ + apt-get install -y chromium + +COPY . . + +RUN npm install -- GitLab