add some of server (diesel, eventlet, gevent, paste, twisted, waitress, wsgiref) in some os
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
FROM alpine:latest
|
||||
|
||||
#LABEL your_label
|
||||
|
||||
RUN apk add --no-cache python py-pip py-setuptools unzip wget py-tornado && \
|
||||
pip install --upgrade pip && \
|
||||
pip install virtualenv
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
# Docker
|
||||
cd /Docker/Alpine/web2py-tornado
|
||||
docker build -t username/alpine-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado username/alpine-web2py-tornado
|
||||
docker build -t your_username/alpine-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado your_username/alpine-web2py-tornado
|
||||
docker ps
|
||||
docker volume ls
|
||||
docker volume inspect applications
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
# Docker Cloud
|
||||
cd /Docker/Alpine/web2py-tornado
|
||||
docker login -u username
|
||||
docker build -t username/alpine-web2py-tornado .
|
||||
docker push username/alpine-web2py-tornado
|
||||
docker login -u your_username
|
||||
docker build -t your_username/alpine-web2py-tornado .
|
||||
docker push your_username/alpine-web2py-tornado
|
||||
|
||||
# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
|
||||
cat << EOF > docker-compose.yml
|
||||
@@ -34,8 +34,8 @@ cat << EOF > Dockerfile
|
||||
EOF
|
||||
cat Dockerfile
|
||||
|
||||
docker build -t username/alpine-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado username/
|
||||
docker build -t your_username/alpine-web2py-tornado .
|
||||
docker run -d -v applications:/home/web2py/web2py/applications -p 8000:8000 --name alpine-web2py-tornado your_username/
|
||||
|
||||
docker-compose up -d
|
||||
docker-compose ps
|
||||
|
||||
Reference in New Issue
Block a user