diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..387023f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM docker:27-dind AS apache +USER root +RUN apk update && \ + apk add --no-cache \ + bash \ + coreutils \ + su-exec \ + apache2 \ + php83-apache2 \ + php83-session +RUN adduser -D apache2 && \ + addgroup apache2 docker +RUN mkdir -p /root/.docker && \ + chmod -R 0777 /root/.docker +RUN chmod 4755 /sbin/su-exec +COPY --chmod=777 httpd-foreground /usr/local/bin/ +COPY --chmod=777 entrypoint.sh /usr/local/bin/ +COPY --chmod=777 . /opt/application +COPY httpd.conf /etc/apache2/httpd.conf +ENV IS_IN_DOCKER=1 +EXPOSE 80 +CMD ["/usr/local/bin/entrypoint.sh"] |