ADD file:087f68d5558e06c7160c9322582925635e7539a7702413828357c28c77f6f345 in / |
CMD ["bash"] |
RUN /bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get update # buildkit |
RUN /bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get upgrade -y # buildkit |
RUN /bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y wget gpg # buildkit |
RUN /bin/sh -c echo "deb http://deb.debian.org/debian/ bookworm main contrib non-free" > /etc/apt/sources.list && echo "deb http://security.debian.org/debian-security bookworm-security main" >> /etc/apt/sources.list && echo "deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free" >> /etc/apt/sources.list # buildkit |
RUN /bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales libffi-dev libssl-dev default-libmysqlclient-dev ca-certificates libpq-dev libjpeg62 libjpeg-dev libpng-dev libpng-dev build-essential git mercurial build-essential libbz2-dev libsqlite3-dev libreadline-dev zlib1g-dev libncurses5-dev libgdbm-dev libgd-dev cron git subversion vim nano mc htop procps dropbear gettext wget redis-server memcached supervisor curl ssh mariadb-client postgresql-client-15 postgresql-15-postgis-3-scripts bind9-host dnsutils nginx nginx-extras libnginx-mod-http-image-filter libxml2-dev libxslt1-dev openssh-sftp-server links2 lynx imagemagick libmagick++-6.q16-dev libmagick++-6.q16hdri-dev libmagickwand-dev ncdu libsodium-dev python3 python3-pip python3-virtualenv libcurl4-openssl-dev python3-dev libproj-dev gdal-bin libmemcached-dev swig mutt ffmpeg libyaml-dev libc-client2007e-dev libonig-dev libkrb5-dev dialog whiptail tmux rsync nmap libzip-dev libfreetype6-dev jpegoptim optipng pngquant gifsicle webp libvpx-dev libwebp-dev jq inotify-tools ripgrep wkhtmltopdf libzbar0 fzf # buildkit |
RUN /bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get remove -y luit # buildkit |
RUN /bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y chromium # buildkit |
WORKDIR /srv |
RUN /bin/sh -c useradd -d /srv app -s /bin/bash # buildkit |
RUN /bin/sh -c usermod -G crontab -a app # buildkit |
RUN /bin/sh -c rm /etc/localtime # buildkit |
RUN /bin/sh -c ln -s /usr/share/zoneinfo/Europe/Prague /etc/localtime # buildkit |
ADD /etc/locale.gen /etc/ # buildkit |
RUN /bin/sh -c locale-gen # buildkit |
ENV LANG=en_US.UTF-8 |
ENV LC_ALL=en_US.UTF-8 |
ENV TERM=xterm |
WORKDIR /usr/src |
ADD build_node.sh /usr/local/bin/build_node.sh # buildkit |
RUN /bin/sh -c build_node.sh 18.20.4 # buildkit |
RUN /bin/sh -c build_node.sh 20.18.0 # buildkit |
RUN /bin/sh -c build_node.sh 21.7.3 # buildkit |
RUN /bin/sh -c build_node.sh 22.9.0 # buildkit |
WORKDIR /usr/src |
ADD build_python.sh /usr/local/bin/build_python.sh # buildkit |
RUN /bin/sh -c build_python.sh 3.11.10 # buildkit |
RUN /bin/sh -c build_python.sh 3.12.7 # buildkit |
RUN /bin/sh -c build_python.sh 3.13.0 # buildkit |
ADD build_php8.sh /usr/local/bin/build_php8.sh # buildkit |
RUN /bin/sh -c build_php8.sh 8.2.24 # buildkit |
RUN /bin/sh -c build_php8.sh 8.3.12 # buildkit |
WORKDIR /usr/src |
ADD build_ruby.sh /usr/local/bin/build_ruby.sh # buildkit |
RUN /bin/sh -c build_ruby.sh 3.2.5 # buildkit |
RUN /bin/sh -c build_ruby.sh 3.3.5 # buildkit |
ADD build_deno.sh /usr/local/bin/build_deno.sh # buildkit |
RUN /bin/sh -c build_deno.sh 1.46.3 # buildkit |
ADD build_bun.sh /usr/local/bin/build_bun.sh # buildkit |
RUN /bin/sh -c build_bun.sh 1.1.29 # buildkit |
ADD build_openjdk.sh /usr/local/bin/build_openjdk.sh # buildkit |
RUN /bin/sh -c build_openjdk.sh 23 3c5b90190c68498b986a97f276efd28a 37 # buildkit |
ADD build_golang.sh /usr/local/bin/build_golang.sh # buildkit |
RUN /bin/sh -c build_golang.sh 1.23.2 # buildkit |
WORKDIR /usr/src |
RUN /bin/sh -c apt install -f xfonts-75dpi && wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bookworm_amd64.deb && dpkg -i wkhtmltox_0.12.6.1-3.bookworm_amd64.deb && rm wkhtmltox_0.12.6.1-3.bookworm_amd64.deb # buildkit |
RUN /bin/sh -c rm -f /etc/cron.d/* /etc/cron.daily/* /etc/cron.hourly/* /etc/cron.monthly/* /etc/cron.weekly/* # buildkit |
ADD /scripts/enable_redis.sh /usr/local/bin/enable-redis # buildkit |
ADD /scripts/enable_memcached.sh /usr/local/bin/enable-memcached # buildkit |
RUN /bin/sh -c chmod 755 /usr/local/bin/* # buildkit |
ADD /etc/supervisord.conf /etc/supervisor/supervisord.conf # buildkit |
ADD /examples /opt/examples # buildkit |
ADD /etc/bashrc_local /opt/etc/bashrc_local # buildkit |
ADD /etc/bash_profile /opt/etc/bash_profile # buildkit |
ADD /etc/vimrc /opt/etc/vimrc # buildkit |
RUN /bin/sh -c mkdir -p /opt/etc/bashrc # buildkit |
RUN /bin/sh -c mkdir -p /opt/etc/appinit # buildkit |
ADD /etc/bashrc/common.sh /opt/etc/bashrc/ # buildkit |
ADD /etc/nginx.conf /etc/nginx/nginx.conf # buildkit |
RUN /bin/sh -c rmdir /var/lib/nginx # buildkit |
RUN /bin/sh -c ln -s /srv/var/nginx /var/lib/nginx # buildkit |
RUN /bin/sh -c chown app:app /var/log/nginx -R # buildkit |
RUN /bin/sh -c chown app:app /home -R # buildkit |
ADD /start.sh /start.sh # buildkit |
RUN /bin/sh -c chmod 755 /start.sh # buildkit |
RUN /bin/sh -c apt-get install -y fish # buildkit |
ADD ./gen_rosti.fish /usr/local/bin/ # buildkit |
ADD ./rosti.tmpl.sh /usr/src/ # buildkit |
ADD ./Dockerfile /usr/src/ # buildkit |
RUN /bin/sh -c cd /usr/src && /usr/local/bin/gen_rosti.fish > /usr/local/bin/rosti && chmod 755 /usr/local/bin/rosti # buildkit |
ADD ./activate_tech.fish /usr/local/bin/activate_tech # buildkit |
RUN /bin/sh -c apt-get clean && rm -rf /usr/src/* # buildkit |
VOLUME [/srv] |
WORKDIR /srv |
EXPOSE map[22/tcp:{} 8000/tcp:{}] |
ENTRYPOINT ["/start.sh"] |