forked from ComputerScienceHouse/packet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 959 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 959 Bytes
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
FROM python:3.6-stretch
MAINTAINER Devin Matte <matted@csh.rit.edu>
RUN mkdir /opt/packet
ADD requirements.txt /opt/packet
WORKDIR /opt/packet
RUN apt-get -yq update && \
apt-get -yq install libsasl2-dev libldap2-dev libssl-dev && \
pip install -r requirements.txt && \
apt-get -yq clean all
ADD . /opt/packet
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get -yq update && \
apt-get -yq install nodejs npm yarn && \
yarn install && \
npm install -g gulp && \
gulp production && \
rm -rf node_modules && \
apt-get -yq remove nodejs npm yarn && \
apt-get -yq clean all
RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
CMD ["gunicorn", "packet:app", "--bind=0.0.0.0:8080", "--access-logfile=-"]