mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
* deps: update djs to v14 * refactor: use discord.js v14 * fix: presence not showing properly * fix: revert Ids * Update pages/api/v2/bots/[id]/index.ts Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * style: apply code style * feat: customizable intents * feat: change node version * feat: change node version * fix: misused operator * deps: fix typescript version to 4.6.4 * fix: fix bot url length (#504) * refactor: add more advertisements (#508) * feat: add open review deny log and max denies restriction (#510) * feat: add open review log channel and embed * chore: do not include submit page * chore: mention instead of date * feat: add max denies error * typo: 더 이상 Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * feat: add exceptions to deny count * fix: invalid embed used Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * fix: invalid guild Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * fix: invalid position Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * fix: proper reason check position Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * feat: sepcific error message * refactor: change reason embed format * fix: knex andWhereNot method to whereNotIn method Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * refactor: detact adblock (#509) * refactor: detact adblock * perf: implement mobile detection * deps: update djs to v14 * refactor: use discord.js v14 * fix: presence not showing properly * fix: revert Ids * Update pages/api/v2/bots/[id]/index.ts Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * style: apply code style * feat: customizable intents * feat: change node version * feat: change node version * fix: misused operator * deps: fix typescript version to 4.6.4 * refactor: use discord.js v14 * deps: update discord.js to 14.2.0 * style: split options * style: prettify * deps: update erlpack Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> Co-authored-by: Byungchul Kim <64084503+chul0721@users.noreply.github.com> Co-authored-by: Eunwoo Choi <61371424+eunwoo1104@users.noreply.github.com>
40 lines
1004 B
Docker
40 lines
1004 B
Docker
FROM node:16.16-alpine
|
|
|
|
# install packages
|
|
RUN apk update && apk upgrade && \
|
|
apk add --no-cache bash git openssh python3 py3-pip build-base
|
|
|
|
# Create app directory
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
# Get Argument
|
|
ARG NEXT_PUBLIC_SENTRY_DSN
|
|
ARG SENTRY_DSN
|
|
ARG SENTRY_AUTH_TOKEN
|
|
ARG SOURCE_COMMIT
|
|
ARG TAG
|
|
|
|
ENV NEXT_PUBLIC_SENTRY_DSN $NEXT_PUBLIC_SENTRY_DSN
|
|
ENV NEXT_PUBLIC_SOURCE_COMMIT $SOURCE_COMMIT
|
|
ENV NEXT_PUBLIC_TAG $TAG
|
|
ENV SENTRY_DSN $SENTRY_DSN
|
|
ENV SENTRY_AUTH_TOKEN $SENTRY_AUTH_TOKEN
|
|
ENV SENTRY_ORG koreanbots
|
|
ENV SENTRY_PROJECT api
|
|
# Installing dependencies
|
|
COPY package*.json /usr/src/app/
|
|
COPY yarn.lock /usr/src/app/
|
|
RUN yarn install
|
|
|
|
# Copying source files
|
|
COPY . /usr/src/app
|
|
|
|
|
|
RUN printf "NEXT_PUBLIC_TESTER_KEY=9f9c4a7ae9afeb045fe818ed8b741c70b1d25ec236b189566a0db020c5596441\nNEXT_PUBLIC_COMMIT_HASH=$(git rev-parse HEAD)\nNEXT_PUBLIC_BRANCH=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')" > .env.local
|
|
|
|
# Building app
|
|
RUN yarn build
|
|
|
|
# Running the app
|
|
CMD yarn start |