Skip to content

Commit

Permalink
Merge pull request #126 from buggregator/feature/docker-database-drivers
Browse files Browse the repository at this point in the history
Added PDO extensions pdo_pgsql and pdo_mysql for PHP in Dockerfile
  • Loading branch information
butschster authored Apr 9, 2024
2 parents 8596a0a + 1083fcb commit b156be2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ RUN git clone -b $BRANCH $REPOSITORY /app
# Configure PHP project
FROM ghcr.io/buggregator/docker:latest as backend

RUN apk update

RUN rm -rf /var/lib/apt/lists/*

RUN apk --no-cache add postgresql-dev

RUN docker-php-ext-install \
pgsql pdo_pgsql pdo_mysql

COPY --from=git /app /app
COPY --from=frontend /app /app/frontend
COPY --from=rr /usr/bin/rr /app
Expand Down

0 comments on commit b156be2

Please sign in to comment.