leilukin-tumbleblog/Dockerfile

15 lines
252 B
Docker
Raw Normal View History

2024-06-20 14:10:42 +00:00
FROM php:8.2-apache
WORKDIR /var/www/html
COPY . .
RUN chown -R www-data ./*
RUN apt-get update
RUN apt-get install -y libonig-dev libpq-dev
RUN docker-php-ext-install pdo_mysql pdo_pgsql
EXPOSE 80
VOLUME /var/www/html
CMD [ "apache2-foreground" ]