forked from lsjroberts/react-redux-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 789 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 789 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
FROM debian:latest
# Update and install stuff
RUN echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
RUN apt-get update
RUN apt-get -y --fix-missing install
RUN apt-get -y install git
RUN apt-get -y install nginx
#Install certbot
RUN apt-get -y install certbot -t jessie-backports
# Install node, npm and dependencies
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y build-essential
RUN npm install -g webpack
# Add nginx conf file
RUN ln -sf /app/conf/app_nginx.conf /etc/nginx/sites-enabled/
RUN ln -sf /app/ssl/letsencrypt /etc/letsencrypt
# Setup volumes
VOLUME ["/app"]
WORKDIR /app/
ENTRYPOINT ["/app/scripts/entrypoint.sh"]