| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=22.04 |
| ADD file:82f38ebced7b2756311fb492d3d44cc131b22654e8620baa93883537a3e355aa in / |
| CMD ["/bin/bash"] |
| ENV DEBIAN_FRONTEND=noninteractive |
| ENV NODE_ENV=production |
| RUN /bin/sh -c apt-get update && apt-get install -y nginx curl wget unzip openssl cron supervisor && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c curl -fsSL https://bun.sh/install | bash # buildkit |
| ENV PATH=/root/.bun/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c curl -fsSL https://get.acme.sh | sh -s email=admin@example.com # buildkit |
| ENV PATH=/root/.acme.sh:/root/.bun/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| WORKDIR /app |
| COPY package.json bun.lock ./ # buildkit |
| RUN /bin/sh -c bun install --production # buildkit |
| COPY . . # buildkit |
| RUN /bin/sh -c mkdir -p /app/logs /app/data /app/certs /app/nginx # buildkit |
| RUN /bin/sh -c mkdir -p /etc/nginx/conf.d # buildkit |
| RUN /bin/sh -c chmod +x /app/src/database/init.ts # buildkit |
| COPY docker/nginx.conf /etc/nginx/nginx.conf # buildkit |
| COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf # buildkit |
| COPY docker/start.sh /start.sh # buildkit |
| RUN /bin/sh -c chmod +x /start.sh # buildkit |
| EXPOSE map[3000/tcp:{} 443/tcp:{} 80/tcp:{}] |
| HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:3000/api/health || exit 1"] "30s" "3s" "5s" "0s" '\x03'} |
| CMD ["/start.sh"] |