ADD file:cc1376ecb3d9e93e4160573c110da753ffeb2efe2223351f1fbf483d89f1a756 in / |
CMD ["bash"] |
RUN /bin/sh -c apt-get update -y && apt-get upgrade -y # buildkit |
RUN /bin/sh -c apt-get install -y git # buildkit |
RUN /bin/sh -c apt-get install -y curl # buildkit |
RUN /bin/sh -c git clone https://github.com/asdf-vm/asdf.git /root/.asdf --branch v0.13.1 # buildkit |
RUN /bin/sh -c echo "source /root/.asdf/asdf.sh" >> /root/.bashrc && echo "source /root/.asdf/completions/asdf.bash" >> /root/.bashrc && chsh root -s /bin/bash # buildkit |
SHELL [/bin/bash -lc] |
RUN /bin/bash -lc echo -n "bun purescript spago python rust" | xargs -d " " -I{} asdf plugin add {} # buildkit |
RUN /bin/bash -lc apt-get install -y tini # buildkit |
ENTRYPOINT ["/usr/bin/tini" "--"] |
RUN /bin/bash -lc apt-get install -y build-essential # buildkit |
RUN /bin/bash -lc apt-get install -y zlib1g zlib1g-dev # buildkit |
RUN /bin/bash -lc apt-get install -y bzip2 libncurses-dev ncurses-bin libffi-dev readline-common openssl libssl-dev # buildkit |
ARG S6_OVERLAY_VERSION=3.1.6.2 |
ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.6.2/s6-overlay-noarch.tar.xz /tmp # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.6.2 /bin/bash -lc tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz # buildkit |
ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.6.2/s6-overlay-x86_64.tar.xz /tmp # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.6.2 /bin/bash -lc tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.6.2 /bin/bash -lc apt-get update # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.6.2 /bin/bash -lc apt-get install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev uuid-dev nginx procps # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.6.2 /bin/bash -lc asdf plugin add nodejs && asdf plugin add python && asdf plugin add postgres # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.6.2 /bin/bash -lc export ASDF_DOWNLOAD_PATH=/.asdf-build && export TMPDIR=/.asdf-build && export POSTGRES_SKIP_INITDB=y && asdf install nodejs 20.9.0 && asdf install python 3.11.1 && asdf install postgres 15.3 # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.6.2 /bin/bash -lc asdf global nodejs 20.9.0 && asdf global postgres 15.3 && asdf global python 3.11.1 # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.6.2 /bin/bash -lc useradd -m postgres && passwd -d postgres # buildkit |
ADD https://dl.min.io/server/minio/release/linux-amd64/minio /usr/bin # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.6.2 /bin/bash -lc chmod +x /usr/bin/minio # buildkit |
RUN |1 S6_OVERLAY_VERSION=3.1.6.2 /bin/bash -lc set -eo pipefail; curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg; echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb bookworm main" | tee /etc/apt/sources.list.d/redis.list; apt-get update; apt-get install -y redis # buildkit |
RUN /bin/bash -lc npm i -g yarn # buildkit |
RUN /bin/bash -lc yarn config set cache-folder /.yarn-cache # buildkit |
COPY package.json turbo.json yarn.lock app.json ./ # buildkit |
COPY packages packages # buildkit |
COPY web web # buildkit |
COPY space space # buildkit |
RUN /bin/bash -lc yarn install # buildkit |
RUN /bin/bash -lc yarn build && cp -R /web/.next /web/_next && cp -R /space/.next /space/_next # buildkit |
RUN /bin/bash -lc mv /web/_next /web/.next && mv /space/_next /space/.next && cp -R /web/.next/standalone/web/* /web/ && cp -R /space/.next/standalone/space/* /space/ # buildkit |
ENV PYTHONDONTWRITEBYTECODE=1 |
ENV PYTHONUNBUFFERED=1 |
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 |
COPY apiserver apiserver # buildkit |
RUN /bin/bash -lc cd /apiserver && pip install -r requirements.txt --compile # buildkit |
COPY docker/etc/ /etc/ # buildkit |
RUN /bin/bash -lc chmod -R 777 /root && chmod -R 777 /root/.asdf && chmod -x /root/.asdf/lib/commands/* && chmod -R 777 /apiserver && chmod -R 777 /web && chmod -R 777 /space && ln $(asdf which postgres) /usr/bin/postgres && ln $(asdf which initdb) /usr/bin/initdb && ln $(asdf which node) /usr/bin/node && ln $(asdf which npm) /usr/bin/npm && ln $(asdf which python) /usr/bin/python # buildkit |
ENV S6_KEEP_ENV=1 |
ENTRYPOINT ["/init"] |