From 720e4f37b09157ff0e9a34517e64d558b79779d1 Mon Sep 17 00:00:00 2001 From: C4 Patino Date: Sun, 18 Feb 2024 21:25:29 -0600 Subject: [PATCH] Update Docker configuration for multi-platform support --- .dockerignore | 1 + docker-compose.prod.yml | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 3c3629e..1dcef2d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,2 @@ node_modules +.env \ No newline at end of file diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 5d55074..838c476 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -24,9 +24,14 @@ services: server: restart: unless-stopped image: c4thebomb/know-it-all-server - build: ./server + build: + context: ./client + dockerfile: Dockerfile + platforms: + - linux/amd64 + - linux/arm64/v8 ports: - - 127.0.0.1:3000:3001 + - 127.0.0.1:3001:3000 networks: - know-it-all - common-network