From 9103f1ecedbb9194b3ccd220ea32893c61656454 Mon Sep 17 00:00:00 2001 From: Bloodcloak <59000966+bloodcloak@users.noreply.github.com> Date: Tue, 26 Mar 2024 20:27:34 -0400 Subject: [PATCH] revise dockerfile --- Dockerfile | 3 +-- package.json | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f8a14d3..c9e608c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ COPY . . RUN yarn install --immutable && \ yarn cache clean && \ yarn cache clean --mirror -RUN yarn migrate # Repo Metadata ARG GIT_REPO @@ -22,4 +21,4 @@ LABEL org.opencontainers.image.source=${GIT_REPO} ENV GIT_VERSION=${GIT_VERSION} # Start Bot -CMD ["yarn", "start"] \ No newline at end of file +CMD ["yarn", "run"] \ No newline at end of file diff --git a/package.json b/package.json index e90d702..e4c2923 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "start": "node bot.js", "make:migration": "knex migrate:make", "migrate": "knex migrate:latest", - "initiate": "yarn && yarn migrate && yarn start" + "initiate": "yarn && yarn migrate && yarn start", + "run": "yarn migrate && yarn start" }, "license": "Apache-2.0", "dependencies": {