* Remove repository indexing from Dockerfile * Copy Elixir code from the context instead of cloning it from Github * Move Dockerfile from docker/debian/Dockerfile to docker/Dockerfile * Add docs for the new Dockerfile * Add an utility script that allows easier repository configuration * Add .dockerignore * Use relative paths in Docker section in README
41 lines
910 B
Docker
41 lines
910 B
Docker
FROM debian:bookworm
|
|
|
|
RUN \
|
|
apt-get update && \
|
|
apt-get --no-install-recommends -y install \
|
|
python3 \
|
|
python3-pip \
|
|
python3-falcon \
|
|
python3-jinja2 \
|
|
python3-bsddb3 \
|
|
python3-pytest \
|
|
python3-pygments \
|
|
perl \
|
|
git \
|
|
apache2 \
|
|
libapache2-mod-wsgi-py3 \
|
|
libjansson4 \
|
|
libyaml-0-2 \
|
|
wget
|
|
|
|
RUN \
|
|
wget https://bootlin.com/pub/elixir/universal-ctags_0+git20200526-0ubuntu1_amd64.deb
|
|
|
|
RUN \
|
|
dpkg -i universal-ctags_0+git20200526-0ubuntu1_amd64.deb
|
|
|
|
COPY . /usr/local/elixir/
|
|
|
|
RUN mkdir -p /srv/elixir-data/
|
|
|
|
# apache elixir config, see elixir README
|
|
# make apache less stricter about cgitb spam headers
|
|
COPY ./docker/000-default.conf /etc/apache2/sites-available/000-default.conf
|
|
|
|
RUN \
|
|
echo -e "\nHttpProtocolOptions Unsafe" >> /etc/apache2/apache.conf && \
|
|
a2enmod cgi rewrite
|
|
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
|