Skip to content

Commit

Permalink
fix(dev-env): handle error on first boot (#1407)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgw77 authored Sep 5, 2024
1 parent 6df454c commit 0651b9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ WORKDIR /app
VOLUME /app

################### POSTGRESQL
ENV PGDATA /app/tmp/postgresql/data
ENV PGDATA="/app/tmp/postgresql/data"

# fixed bundler version because latest version 2.3.21 produces errors when resolving dependencies
# or an endless loop when the gem directory needs to be rebuilt
RUN gem install bundler -v 2.3.20 && bundle config set --local path 'vendor/bundle'
RUN echo -e '#!/bin/bash\n\n\
set -e \n\
bundle install \n\
yarn \n\
mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA"\n\
Expand Down

0 comments on commit 0651b9b

Please sign in to comment.