Helpful tips for Docker

This article shows some helpful tips for Docker.

🎉 docker build


The ARG instruction lets Dockerfile authors define values that users can set at build-time using the –build-arg flag:

docker build --build-arg HTTP_PROXY= .

🎃 Execute a command on Docker container

This is a procedure to execute a command like yarn run xxx:

docker build -t app .
docker run \
--rm \
--entrypoint /bin/bash \
-e ENVIRONMENT=development \
crawler-v2 \
-c 'yarn run xxx'

🍄 References

🖥 Recommended VPS Service

VULTR provides high performance cloud compute environment for you. Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour). In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!