dsql-admin/dsql-app/Dockerfile

23 lines
744 B
Docker
Raw Normal View History

2025-01-28 18:43:16 +00:00
FROM node:20-bookworm
2024-11-05 11:12:42 +00:00
RUN apt-get update
2025-01-28 18:43:16 +00:00
RUN apt-get install -y apt-transport-https git ca-certificates curl gnupg python3 python3-pip make build-essential mariadb-client wget zip unzip xz-utils
2024-11-05 11:12:42 +00:00
2025-01-28 18:43:16 +00:00
WORKDIR /root
2024-11-05 11:12:42 +00:00
2025-01-28 18:43:16 +00:00
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="/root/.bun/bin:${PATH}"
2024-11-05 11:12:42 +00:00
2025-01-28 18:43:16 +00:00
# Install Global Modules
COPY .npmrc /root/.bun/install/global/.npmrc
RUN bun add -g @moduletrace/buncid
2024-11-05 11:12:42 +00:00
2025-01-28 18:43:16 +00:00
COPY docker/mariadb/.mariadb_history /root/.mariadb_history
COPY docker/mariadb/.bash_history /root/.bash_history
2024-11-05 11:12:42 +00:00
COPY docker-entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
2024-11-05 14:47:45 +00:00
HEALTHCHECK --interval=10s --timeout=5s --retries=10 CMD curl -f http://localhost:$DSQL_PORT/ || exit 1
2024-11-05 11:12:42 +00:00
ENTRYPOINT ["entrypoint.sh"]