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": {