Skip to content

Commit

Permalink
fix: Docker Compose
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarMWarraich committed Aug 3, 2024
1 parent 7c5c498 commit d6c9dd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./
Expand All @@ -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
Expand Down
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d6c9dd6

Please sign in to comment.