Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile #87

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

wesley-dean-flexion
Copy link

@wesley-dean-flexion wesley-dean-flexion commented Nov 20, 2019

This PR has an updated Dockerfile based on yours (i.e., it uses python:3-alpine as its base, it uses the builtin pip to install fcli, etc.) but it also adds a new user account (fcli) which is unprivileged and it uses that unprivileged account to run fcli without root permissions. The CMD section has been updated to "--help" so that if a user runs the image with parameters, it defaults to --help.

To build:

docker build -t fcli .

To run:

docker run --rm -it -v "$(pwd)/.fcli:/fcli/.fcli)" fcli ...

(where ... is arguments to fcli)

Resolves #40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add Docker support
2 participants