-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (29 loc) · 1.54 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:18.10
LABEL vendor="OpenSVC"
LABEL maintainer="[email protected]"
RUN sed -i 's|archive.ubuntu|old-releases.ubuntu|g' /etc/apt/sources.list && \
sed -i '/security.ubuntu.com/d' /etc/apt/sources.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install --no-install-recommends -y patch uwsgi-plugin-python uwsgi python-mysqldb python-tornado python-yaml \
python-xmpp python-redis graphviz openssh-client git fping nodejs nodejs npm \
python-requests python-cryptography python-jwt python-ldap vim phantomjs \
xvfb python-whisper python-pip curl && \
apt-get clean
RUN python -m pip install --upgrade pip && pip install setuptools && pip install uwsgitop
RUN curl -L -o- https://github.com/web2py/web2py/archive/R-2.14.1.tar.gz | tar xzf - -C /opt && \
mv /opt/web2py-R-2.14.1 /opt/web2py
RUN curl -L -o- https://github.com/web2py/pydal/archive/v19.04.tar.gz | tar xzf - -C /opt && \
rmdir /opt/web2py/gluon/packages/dal && \
mv /opt/pydal-19.04 /opt/web2py/gluon/packages/dal
COPY /docker-entrypoint.sh /
COPY /docker-entrypoint.d/* /docker-entrypoint.d/
ONBUILD COPY /docker-entrypoint.d/* /docker-entrypoint.d/
WORKDIR /opt
RUN cp /opt/web2py/handlers/wsgihandler.py /opt/web2py/ && \
mv /opt/web2py/applications/admin /tmp && \
rm -rf /opt/web2py/applications/* && \
chown -R 1000:1000 /opt/web2py && \
chmod +x /docker-entrypoint.sh /docker-entrypoint.d/*
RUN npm install vm2 -g
ENTRYPOINT ["/docker-entrypoint.sh"]