Skip to content

Commit

Permalink
remove unused / switch to alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
philipparndt committed Nov 1, 2022
1 parent 326752a commit 65e0cff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 75 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
FROM gcr.io/distroless/nodejs:18
COPY ./app/dist /opt/app/
#FROM gcr.io/distroless/nodejs:18
#COPY ./app/dist /opt/app/
#
#CMD ["/opt/app/index.js", "/var/lib/fritzbox-to-mqtt-gw/config.json"]

CMD ["/opt/app/index.js", "/var/lib/fritzbox-to-mqtt-gw/config.json"]
FROM node:18.6-alpine
COPY app/dist /opt/app/
WORKDIR /opt/app/

CMD ["node", "index.js", "/var/lib/fritzbox-to-mqtt-gw/config.json"]
67 changes: 0 additions & 67 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@
"license": "Apache-2.0",
"private": true,
"devDependencies": {
"@types/async-lock": "1.1.5",
"@types/eventsource": "1.1.10",
"@types/jest": "28.1.6",
"@types/node": "16.11.45",
"@types/node-cron": "3.0.2",
"@typescript-eslint/eslint-plugin": "5.30.7",
"@typescript-eslint/parser": "5.30.7",
"@vercel/ncc": "0.34.0",
Expand All @@ -45,9 +42,7 @@
"dependencies": {
"async-lock": "1.3.2",
"axios": "0.27.2",
"eventsource": "2.0.2",
"mqtt": "4.3.7",
"node-cron": "3.0.1",
"tr-064": "0.2.0",
"winston": "3.8.1",
"winston-transport": "4.5.0"
Expand Down

0 comments on commit 65e0cff

Please sign in to comment.