From d6c9dd611965b00366b1c037cb97ff3c19007a0d Mon Sep 17 00:00:00 2001 From: OmarMWarraich Date: Sat, 3 Aug 2024 16:26:43 +0500 Subject: [PATCH] fix: Docker Compose --- Dockerfile | 4 ++-- docker-compose.yml | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1531e60..b5d509c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ FROM base as build # Install packages needed to build gems RUN apt-get update -qq && \ - apt-get install --no-install-recommends -y build-essential git libvips pkg-config + apt-get install --no-install-recommends -y build-essential git libvips pkg-config nodejs libpq-dev # Install application gems COPY Gemfile Gemfile.lock ./ @@ -39,7 +39,7 @@ FROM base # Install packages needed for deployment RUN apt-get update -qq && \ - apt-get install --no-install-recommends -y curl libsqlite3-0 libvips && \ + apt-get install --no-install-recommends -y curl postgresql-client nodejs libvips && \ rm -rf /var/lib/apt/lists /var/cache/apt/archives # Copy built artifacts: gems, application diff --git a/docker-compose.yml b/docker-compose.yml index 2f94efa..0cb9256 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,9 +10,12 @@ services: - .ror-env ports: - "5432:5432" + ror-react-app: - build: . - command: "./bin/rails server" + build: + context: . + dockerfile: Dockerfile + command: ["./bin/rails", "server"] env_file: - .ror-env volumes: