Skip to content

Commit

Permalink
add info to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
esposimo committed Mar 14, 2024
1 parent 533ce37 commit 60cb5db
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,36 @@ USER root:root


# valutare questo dockerfile
## Uso una build per effettuare il clone del repository. Il comando git non mi servirà più quindi è inutile installarlo nella build finale
## FROM alpine:latest as git_repo
##
## RUN apk upgrade && apk update && apk add git
##
## WORKDIR /tmp
##
## RUN git clone https://github.com/pagopa/pagopa-qi-log-crawler
##
##
##
## FROM composer:latest as composer
##
## Uso la build di composer nella quale copio il repository precedentemente clonato, e lancio il composer install
## Anche in questo caso composer serve solo per effettuare il download delle dipendenze, quindi è inutile installarlo nella build finale
## FROM composer:latest as composer
## RUN mkdir -p /tmp/repo
##
## COPY --from=git_repo /tmp/pagopa-qi-log-crawler/src /tmp/repo/
##
## WORKDIR /tmp/repo
##
## RUN composer install
##
## Uso php-fpm ed installo alcuni modulo (forse libzip si può eliminare , serviva a composer)
## FROM php:8.2-fpm
##
## RUN mkdir -p /var/www/html/sherlock
##
## COPY --from=composer /tmp/repo/ /var/www/html/sherlock
## RUN apt -y update && \
## apt -y upgrade && \
## apt -y install libpq-dev libzip-dev zip libmemcached-dev cron && \
## docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql && \
## docker-php-ext-install pdo pdo_pgsql pgsql zip && \
## pecl install memcached && \
## docker-php-ext-enable memcached && \
## /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini && \
## mkdir -p /var/www/html/sherlock
## COPY --from=composer /tmp/repo/ /var/www/html/sherlock
##
##
## valutare https://packagist.org/packages/predis/predis per la connessione a Redis.
## se si usa redis eliminare dalla build le dipendenze di memcache

0 comments on commit 60cb5db

Please sign in to comment.