add_docker
This commit is contained in:
21
docker/python/web2py-rocket/Dockerfile
Executable file
21
docker/python/web2py-rocket/Dockerfile
Executable file
@@ -0,0 +1,21 @@
|
||||
FROM python:2.7
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y unzip wget
|
||||
|
||||
RUN groupadd -r web2py && \
|
||||
useradd -m -r -g web2py web2py
|
||||
|
||||
USER web2py
|
||||
|
||||
RUN cd /home/web2py/ && \
|
||||
wget -c http://web2py.com/examples/static/web2py_src.zip && \
|
||||
unzip -o web2py_src.zip && \
|
||||
rm -rf /home/web2py/web2py/applications/examples && \
|
||||
chmod 755 -R /home/web2py/web2py
|
||||
|
||||
WORKDIR /home/web2py/web2py
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD python /home/web2py/web2py/web2py.py --nogui --no-banner -a 'a' -i 0.0.0.0 -p 8000
|
||||
Reference in New Issue
Block a user