forked from opentracing-contrib/nginx-opentracing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (27 loc) · 803 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
FROM ubuntu:17.10
WORKDIR /app
ADD . /app
RUN set -x \
## install nodejs and node dependencies
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y \
python \
curl \
ca-certificates \
gnupg2 \
build-essential \
&& mkdir /node-latest-install \
&& cd /node-latest-install \
&& curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh \
&& bash nodesource_setup.sh \
&& apt-get install --no-install-recommends --no-install-suggests -y \
nodejs \
&& cd /app \
&& npm install . \
## set up directories
&& mkdir /app/data \
&& chmod a+rw /app/data \
&& mkdir /app/data/images \
&& chmod a+rw /app/data/images
EXPOSE 80
CMD ["/app/start-backend.sh"]