Giter VIP home page Giter VIP logo

common-docker-starter-node's Introduction

#这是个通用的 docker启动器,可以动态启动node app 样本程序如下:

node app 项目根目录下可以添加run.sh 个性化你的启动过程. 不添加也可以。

#!/bin/bash docker stop starter docker rm starter

#启动一个临时测试的web服务器 #current_file_path=$(cd "$(dirname "$0")"; pwd) #filesource="file://${current_file_path}/helloworld.tar.gz"

docker run -d --name starter
-e "PORT=80"
-v pwd/helloworld.tar.gz:/server/data/helloworld.tar.gz
-e "downloadURL=file:///server/data/helloworld.tar.gz"
-p 81:80
-m 1g
--dns 114.114.114.114
common-node-alpine:8.15.1-alpine

common-docker-starter-node

common-docker-starter-node

common-docker-starter-node's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.