Skip to content

Commit

Permalink
Including dockerfile...
Browse files Browse the repository at this point in the history
  • Loading branch information
apnex committed Aug 13, 2018
1 parent a88d430 commit 4d6dfef
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker build --no-cache -t apnex/vmw-cli -f ./vmw-cli.docker .
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vmw-cli",
"version": "1.0.18",
"version": "1.0.19",
"description": "CLI interface for my.vmware.com",
"license": "MIT",
"repository": "apnex/vmw-cli",
Expand Down
12 changes: 12 additions & 0 deletions vmw-cli.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM alpine
RUN apk --no-cache add \
nodejs \
nodejs-npm \
&& npm install vmw-cli --global \
&& npm cache clean --force \
&& npm remove npm --global
RUN mkdir -p /files /state
ENV VMWFILESDIR "/files"
ENV VMWINDEXDIR "/files"
ENV VMWSTATEDIR "/state"
ENTRYPOINT ["vmw-cli"]

0 comments on commit 4d6dfef

Please sign in to comment.