Skip to content

Commit

Permalink
revise dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodcloak committed Mar 27, 2024
1 parent 8a74ff0 commit 9103f1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ COPY . .
RUN yarn install --immutable && \
yarn cache clean && \
yarn cache clean --mirror
RUN yarn migrate

# Repo Metadata
ARG GIT_REPO
Expand All @@ -22,4 +21,4 @@ LABEL org.opencontainers.image.source=${GIT_REPO}
ENV GIT_VERSION=${GIT_VERSION}

# Start Bot
CMD ["yarn", "start"]
CMD ["yarn", "run"]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 9103f1e

Please sign in to comment.