source: OpenRLabs-Git/deploy/rlabs-docker/web2py-rlabs/docker/alpine/web2py-paste/Dockerfile

main
Last change on this file was 42bd667, checked in by David Fuertes <dfuertes@…>, 4 years ago

Historial Limpio

  • Property mode set to 100755
File size: 696 bytes
Line 
1FROM alpine:latest
2
3#LABEL your_label
4
5RUN apk add --no-cache python py-pip py-setuptools unzip wget && \
6 pip install --upgrade pip && \
7 pip install virtualenv paste
8
9RUN addgroup -S web2py && \
10 adduser -D -S -G web2py web2py
11
12USER web2py
13
14RUN virtualenv /home/web2py && \
15 rm -rf /home/web2py/web2py && \
16 cd /home/web2py/ && \
17 rm -f web2py_src.zip && \
18 wget -c http://web2py.com/examples/static/web2py_src.zip && \
19 unzip -o web2py_src.zip && \
20 rm -rf /home/web2py/web2py/applications/examples && \
21 chmod 755 -R /home/web2py/web2py
22
23WORKDIR /home/web2py/web2py
24
25EXPOSE 8000
26
27CMD . /home/web2py/bin/activate && /usr/bin/python /home/web2py/web2py/anyserver.py -s paste -i 0.0.0.0 -p 8000
Note: See TracBrowser for help on using the repository browser.