aboutsummaryrefslogtreecommitdiff
path: root/.devcontainer/Dockerfile
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-11-16 13:23:51 +0100
committerGravatar GitHub <noreply@github.com> 2022-11-16 13:23:51 +0100
commitc5b741d98fed4b04c1017f0ace3d6b6566ea7bba (patch)
tree67e4859cb8b76d7d067c8e0d71311bb285fe00e3 /.devcontainer/Dockerfile
parenta0e3fac47e2f0afbb0346da765bf8942c5ad3984 (diff)
Experiment Development Containers / GitHub Codespaces (#4859)
* Experiment Development Containers / GitHub Codespaces https://containers.dev/ https://github.com/features/codespaces * Fix tests
Diffstat (limited to '.devcontainer/Dockerfile')
-rw-r--r--.devcontainer/Dockerfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 000000000..db7db4d60
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,31 @@
+FROM alpine:3.16
+
+ENV TZ UTC
+SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
+RUN apk add --no-cache \
+ apache2 php-apache2 \
+ php php-curl php-gmp php-intl php-mbstring php-xml php-zip \
+ php-ctype php-dom php-fileinfo php-iconv php-json php-opcache php-openssl php-phar php-session php-simplexml php-xmlreader php-xmlwriter php-xml php-tokenizer php-zlib \
+ php-pdo_sqlite php-pdo_mysql php-pdo_pgsql \
+ bash composer curl docker-cli-buildx git gpg make nodejs npm shellcheck shfmt sudo
+
+RUN rm -f /etc/apache2/conf.d/languages.conf /etc/apache2/conf.d/info.conf \
+ /etc/apache2/conf.d/status.conf /etc/apache2/conf.d/userdir.conf && \
+ sed -r -i "/^\s*LoadModule .*mod_(alias|autoindex|negotiation|status).so$/s/^/#/" \
+ /etc/apache2/httpd.conf && \
+ sed -r -i "/^\s*#\s*LoadModule .*mod_(deflate|expires|headers|mime|remoteip|setenvif).so$/s/^\s*#//" \
+ /etc/apache2/httpd.conf && \
+ sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" \
+ /etc/apache2/httpd.conf
+
+RUN addgroup developer && \
+ adduser --ingroup developer --disabled-password developer && \
+ echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer
+
+ENV COPY_LOG_TO_SYSLOG On
+ENV COPY_SYSLOG_TO_STDERR On
+ENV CRON_MIN ''
+ENV FRESHRSS_ENV 'development'
+ENV LISTEN '0.0.0.0:8080'
+
+EXPOSE 8080