-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (29 loc) · 809 Bytes
/
Dockerfile
File metadata and controls
34 lines (29 loc) · 809 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
34
FROM debian:latest
RUN apt-get update && \
apt-get install --yes \
git \
python \
g++ \
make \
curl \
nginx
# It always downloads and builds latest stable sources of Node.
RUN cd /tmp && \
curl -O https://nodejs.org/dist/latest-v10.x/node-v10.16.0.tar.gz && \
tar -xf node-v10.16.0.tar.gz && \
cd ./node-v10.16.0 && \
./configure && \
make -j4 && \
make install
# Downloads latest React or fails if an error occurs.
RUN npm update -g && \
npm install -g \
react \
react-dom \
react-scripts \
yarn
# Copy and activate reverse proxy configuration.
RUN rm /etc/nginx/sites-enabled/default
COPY ./domain.conf /etc/nginx/sites-available/
RUN ln -s /etc/nginx/sites-available/domain.conf /etc/nginx/sites-enabled/
EXPOSE 80/tcp