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

Create Dockerfile #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create Dockerfile #17

wants to merge 1 commit into from

Conversation

Poilaucul
Copy link

No description provided.

@Poilaucul
Copy link
Author

Poilaucul commented Aug 9, 2020

Using Podman & Buildah

To create the image from Dockerfile:
buildah bud --tag "bitmex-scaled-orders:1.7.1" --file Dockerfile

To create and start the container from the image:
podman run --publish 80:3001 --mount type=bind,source=/home/centos/bitmex-production.env,destination=/home/bitmex-scaled-orders/BitMEX-scaled-orders/api/.env --log-opt path=/tmp/container.log --name "bitmex-scaled-orders" localhost/bitmex-scaled-orders:1.7.1 npm run prod

source=/home/centos/bitmex-production.env

File containing your BitMEX API Keys

--publish 80:3001

80 is the port mapped on your host machine, BitMEX-scaled-orders will then be available at [host machine IP:80]

@Effanuel
Copy link
Owner

This is a sought after feature I have kept in the back of my mind for a while. Too bad I don't know much about building proper docker containers, to approve this change right now. Thanks a lot.

@Effanuel Effanuel added enhancement New feature or request Priority: Low labels Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants