Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Commit

Permalink
fix(Dockerfile): Fix CMD option
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbo2002 committed Jun 13, 2021
1 parent 3815b74 commit c16143a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,6 @@ jobs:
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.source=https://github.com/${{ github.repository }}
cache-from: ghcr.io/${{ github.repository }}:build-container
- name: 🏁 Boot-up Check
if: github.repository != 'sebbo2002/js-template'
run: |
docker run --name "app" -d $IMAGE
sleep 5
docker logs app
docker exec app echo "Ok."
docker stop app
docker rm app
env:
IMAGE: ghcr.io/${{ github.repository }}:${{ github.sha }}
outputs:
digest: ${{ steps.build.outputs.digest }}

Expand Down
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ ENV NODE_ENV=$NODE_ENV
WORKDIR "/app"

RUN apk add --no-cache --update dumb-init && \
ln -s /app/dist/bin/start.js /usr/local/bin/start && \
ln -s /app/dist/bin/cli.js /usr/local/bin/cli
ln -s /app/dist/bin/ble2mqtt.cjs /usr/local/bin/ble2mqtt

COPY --from=build-container /app/package*.json "/app/"
RUN npm ci --only-production
Expand All @@ -29,4 +28,4 @@ COPY --from=build-container "/app" "/app"
USER node

ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/usr/local/bin/start"]
CMD ["/usr/local/bin/ble2mqtt"]

0 comments on commit c16143a

Please sign in to comment.