-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 873 Bytes
/
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
FROM debian:stretch
MAINTAINER Naoaki Obiki
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
git sudo curl libssl-dev \
make autoconf automake gcc g++ \
python3 python3-dev python3-setuptools python3-pip \
nginx \
supervisor \
sqlite3 && \
pip3 install -U pip setuptools && \
rm -rf /var/lib/apt/lists/*
ENV CFLAGS="-I/usr/local/opt/openssl/include"
ENV LDFLAGS "-L/usr/local/opt/openssl/lib"
ENV UWSGI_PROFILE_OVERRIDE "ssl=true"
RUN pip3 install uwsgi -I
# nginx
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
COPY docker/nginx-app.conf /etc/nginx/sites-available/default
# node
RUN curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
RUN sudo apt install -y nodejs
# supervisor
COPY docker/supervisor-app.conf /etc/supervisor/conf.d/
COPY docker/entrypoint.sh /
RUN chmod +x entrypoint.sh
CMD ["./entrypoint.sh"]