Dockerfile
FROM php:7.2-apache
COPY php.ini "$PHP_INI_DIR/php.ini"
#official Code
ARG VERSION=7.0
ARG DIRECTORY=icecoder
ADD https://github.com/icecoder/ICEcoder/archive/${VERSION}.tar.gz /tmp/
RUN a2enmod rewrite && \
chown -R www-data:www-data /tmp/${VERSION}.tar.gz
USER www-data
RUN tar -xzf /tmp/${VERSION}.tar.gz -C /var/www/html/ && \
mv /var/www/html/ICEcoder-${VERSION} /var/www/html/${DIRECTORY} && \
rm /tmp/${VERSION}.tar.gz
USER root
VOLUME ["/var/www/html/${DIRECTORY}/plugins", "/var/www/html/${DIRECTORY}/data"]
how to use:
in portainer /compose:
version: '2'
services:
icecoder:
image: icecoder:7.0
container_name: icecoder
hostname: icecoder.docker
environment:
- APACHE_RUN_USER=www-data #change to #1000 or whatever
volumes:
- icecoder_data:/var/www/html/icecoder/data/
- icecoder_plugins:/var/www/html/icecoder/plugins/
# - docker_volume_name:/var/www/html/volume_name/
# - /directory/to/mount:/var/www/html/mount_name/
ports:
- "8800:80"
network_mode: bridge
remember to check the permissions, actually tested with containers based on the same php:7.2-apache user www-data
Content type
Image
Digest
Size
144.2 MB
Last updated
about 6 years ago
docker pull kurenairyu/icecoder:7.0