diff --git a/Dockerfile b/Dockerfile index 97d14e34..3c0d13a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,65 +1,81 @@ +# syntax=docker/dockerfile:1 + FROM ubuntu:24.04 +SHELL ["/bin/bash", "-ceox", "pipefail"] + ENV DEBIAN_FRONTEND=noninteractive ENV LC_CTYPE=C.UTF-8 -RUN apt-get update && \ - apt-get install -y \ - build-essential \ - btrfs-progs \ - curl \ - git \ - host \ - htop \ - iproute2 \ - iputils-ping \ - jq \ - kmod \ - unzip \ - wget \ +RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ + --mount=type=cache,target=/var/lib/apt,sharing=locked \ + apt-get update && xargs apt-get install -yqq < /etc/docker/daemon.json && \ - sed -i 's|-H fd:// ||' /lib/systemd/system/docker.service && \ - wget -O /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json +RUN < /etc/fstab && \ - echo '/data/homes /run/homefs none defaults,bind,nosuid 0 0' >> /etc/fstab +RUN < /etc/sysctl.d/90-dojo.conf +ADD https://github.com/CTFd/CTFd.git#3.6.0 /opt/CTFd + +COPY <