2024-04-16 03:37:21 +00:00
|
|
|
FROM git.orionkindel.com/tpl/asdf:bookworm-full AS base
|
2023-12-11 18:23:00 +00:00
|
|
|
|
2024-04-16 03:37:21 +00:00
|
|
|
RUN apt-get update && apt-get install -y wget nginx procps lsb-release tmux
|
|
|
|
RUN wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /usr/bin/minio && chmod +x /usr/bin/minio
|
|
|
|
RUN go install github.com/DarthSim/overmind/v2@latest
|
|
|
|
RUN asdf global python 3.12.3 && asdf plugin remove postgres && pip install setuptools
|
|
|
|
RUN npm i -g yarn && yarn set version 1.22.19
|
2023-12-11 18:23:00 +00:00
|
|
|
|
2024-04-16 03:37:21 +00:00
|
|
|
RUN sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' \
|
|
|
|
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get -y install postgresql
|
2023-12-11 18:23:00 +00:00
|
|
|
|
|
|
|
RUN 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
|
|
|
|
|
2024-04-16 03:37:21 +00:00
|
|
|
FROM base AS run
|
2023-12-11 18:23:00 +00:00
|
|
|
|
2024-04-16 03:37:21 +00:00
|
|
|
COPY --from=git.orionkindel.com/thunderstrike/plane-base:latest /app /app
|
|
|
|
COPY --from=git.orionkindel.com/thunderstrike/plane-base:latest /etc /etc
|
|
|
|
COPY --from=git.orionkindel.com/thunderstrike/plane-base:latest /root/.asdf/installs/python /root/.asdf/installs/python
|
2023-12-11 18:23:00 +00:00
|
|
|
|
2024-04-16 03:37:21 +00:00
|
|
|
WORKDIR /app
|
2023-12-11 18:23:00 +00:00
|
|
|
|
2024-04-16 03:37:21 +00:00
|
|
|
RUN chmod -R 755 /root \
|
|
|
|
&& chmod -R 755 /root/.asdf \
|
|
|
|
&& chmod -R 755 apiserver \
|
|
|
|
&& chmod -R 755 web \
|
|
|
|
&& chmod -R 755 space \
|
2023-12-11 18:23:00 +00:00
|
|
|
&& chmod -x /root/.asdf/lib/commands/* \
|
2024-04-16 03:37:21 +00:00
|
|
|
&& chmod +x /etc/db-run.sh \
|
2023-12-11 18:23:00 +00:00
|
|
|
&& ln $(asdf which node) /usr/bin/node \
|
|
|
|
&& ln $(asdf which npm) /usr/bin/npm \
|
|
|
|
&& ln $(asdf which python) /usr/bin/python
|
|
|
|
|
2024-04-16 03:37:21 +00:00
|
|
|
ENTRYPOINT ["bash", "-lc", "/etc/entrypoint.sh"]
|