-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 694 Bytes
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 694 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
32
33
FROM ubuntu:latest
MAINTAINER Francois Dazan
# Installing dependencies
RUN apt-get update && \
apt-get -y install curl wget git g++ make python-dev build-essential
# Installing nodejs
RUN curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - && \
apt-get -y install nodejs
# Copy app et clean parameters to container
COPY app /app
COPY parameters.json /app/config/parameters.json
# Set script
COPY entrypoint.sh /entrypoint.sh
COPY pushbullet.sh /pushbullet.sh
RUN chmod +x /*.sh
# Start requirement installation
WORKDIR /app
RUN npm install
# Expose port
EXPOSE 3000
EXPOSE 80
# Executing entrypoint
ENTRYPOINT ["/entrypoint.sh"]
# Executing node
CMD ["npm", "start"]