diff options
author | Jonas Kohl | 2024-11-07 17:59:09 +0100 |
---|---|---|
committer | Jonas Kohl | 2024-11-07 17:59:09 +0100 |
commit | 0f4328e1713dfea73e82c91a3ca194d734416fe3 (patch) | |
tree | 8e729d639eada93c6bc4e46fada3b02885efd75d /Dockerfile | |
parent | bf940e4049ea39dc84f6c837bba094ba441cc491 (diff) |
Dockerize whole application
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"] |