Skip to content

Commit

Permalink
Add Dockerfile (#144)
Browse files Browse the repository at this point in the history
Creates a ~77 MB container that makes it easy to access this tool. E.g.:
alias vodafone-station-cli="podman run --rm --secret VODAFONE_ROUTER_PASSWORD,type=env vodafone-station-cli:latest"
  • Loading branch information
0xF4CED authored Jun 1, 2023
1 parent 6b3b38a commit e0eb72b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:16-alpine AS build
WORKDIR /usr/src/app
COPY . .
RUN yarn && npm install vodafone-station-cli &&\
npm prune --production

FROM alpine
RUN apk add --no-cache nodejs
WORKDIR /usr/src/app
COPY --from=build /usr/src/app/node_modules ./node_modules
ENTRYPOINT ["/usr/src/app/node_modules/vodafone-station-cli/bin/run"]

0 comments on commit e0eb72b

Please sign in to comment.