diff --git a/backend/docker-compose.yml b/backend/docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..2dce13ef30b98d7444f08588dd80c6de080b5890 --- /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 0000000000000000000000000000000000000000..bf1a71ef9047abe118c0f1f468768028bd5b23ba --- /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