upgraded dockerfile to be more sane

This commit is contained in:
Christian Haschek 2021-11-27 16:22:20 +01:00
parent b41e240510
commit 69f723d7af
2 changed files with 10 additions and 5 deletions

5
.dockerignore Normal file
View file

@ -0,0 +1,5 @@
config.ini
data/*
.git
.github
docs

View file

@ -1,15 +1,15 @@
FROM alpine:3.10
FROM alpine:3.14.2
RUN apk add --no-cache python socat wget php7-fileinfo php7-session curl git php php-curl nginx php-openssl php-mbstring php-json php-gd php-dom php-fpm
#RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
RUN mkdir -p /var/www
WORKDIR /var/www
RUN mkdir -p /var/www/opentrashmail
WORKDIR /var/www/opentrashmail
ADD . /var/www/opentrashmail/.
ADD docker/rootfs/start.sh /etc/start.sh
RUN chmod +x /etc/start.sh
RUN git clone https://github.com/HaschekSolutions/opentrashmail.git
# nginx stuff
ADD docker/rootfs/nginx.conf /etc/nginx/conf.d/default.conf
RUN mkdir -p /run/nginx