upstream from PussTheCat-org/docker-proxitok-quay

This commit is contained in:
Pablo Ferreiro 2022-03-16 00:26:45 +01:00
parent eb69e8a22e
commit e4e6f05362
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
3 changed files with 17 additions and 10 deletions

View file

@ -1,15 +1,24 @@
FROM php:8.0-apache
FROM php:8-apache
WORKDIR /var/www/html
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN apt update -y && apt install -y libzip-dev \
RUN apt update -y && apt upgrade -y \
&& apt install -y --no-install-recommends libzip-dev \
&& pecl install redis zip \
&& docker-php-ext-enable redis zip \
&& a2enmod rewrite headers
RUN ["mkdir", "/cache"]
RUN ["chown", "-R", "www-data:www-data", "/cache"]
&& a2enmod rewrite headers \
&& mkdir /cache \
&& chown -R www-data:www-data /cache \
&& rm -rf /var/www/html/*
# Copy project to /var/www/html
COPY . .
# Run composer and clean
RUN composer update \
&& composer install --no-interaction --optimize-autoloader --no-dev
&& composer install --no-interaction --optimize-autoloader --no-dev \
&& apt autoclean -y \
&& apt autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /usr/bin/composer
EXPOSE 80

View file

@ -30,7 +30,6 @@ Apply to: Main window (address bar)
Please check [this](https://github.com/pablouser1/ProxiTok/wiki/Self-hosting) wiki article for info on how to self-host your own instance
## TODO / Known issues
* Docker
* Add a NoJS version / Make the whole program without required JS
* Make video on /video fit screen and don't overflow
* i18n

View file

@ -17,7 +17,6 @@ services:
depends_on:
- redis
- chrome
redis:
container_name: proxitok-redis
image: redis:6-alpine