Skip to content

Create Dockerfile#17

Open
Poilaucul wants to merge 1 commit intoEffanuel:masterfrom
Poilaucul:patch-1
Open

Create Dockerfile#17
Poilaucul wants to merge 1 commit intoEffanuel:masterfrom
Poilaucul:patch-1

Conversation

@Poilaucul
Copy link
Copy Markdown

No description provided.

@Poilaucul
Copy link
Copy Markdown
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
Copy Markdown
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.

2 participants