Skip to content

Commit

Permalink
fix: remove entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinaël Devresse committed Nov 2, 2024
1 parent a678a6f commit f7b4da1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN yarn install --frozen-lockfile \
&& yarn env-gen \
&& yarn build \
&& yarn install --production \
&& zip -r app.zip ./node_modules ./build ./yarn.lock ./.env ./entrypoint.sh
&& zip -r app.zip ./node_modules ./build ./yarn.lock ./.env

# ------------------------------------------------------------
FROM node:lts-alpine AS app
Expand All @@ -22,7 +22,4 @@ COPY --from=build /app/app.zip .
RUN unzip app.zip \
&& rm app.zip \
&& mv ./build/* . \
&& rm -rf ./build \
&& chmod +x ./entrypoint.sh

ENTRYPOINT ["./entrypoint.sh"]
&& rm -rf ./build
4 changes: 3 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ services:
build:
context: .
dockerfile: ./Dockerfile
command: node ./index.js | tee -a /var/log/datadrop/console.log
volumes:
- bot_logs:/var/log/datadrop/
depends_on:
- database
database:
condition: service_healthy

volumes:
postgres:
Expand Down
12 changes: 0 additions & 12 deletions entrypoint.sh

This file was deleted.

0 comments on commit f7b4da1

Please sign in to comment.