Browse Source

Add dockerfile

master
Chris Smith 5 years ago
parent
commit
cfa9e845bb
2 changed files with 18 additions and 15 deletions
  1. 18
    0
      Dockerfile
  2. 0
    15
      docker-compose.yml

+ 18
- 0
Dockerfile View File

@@ -0,0 +1,18 @@
1
+# Clone the warframe-items repo so we can copy the JSON files
2
+
3
+FROM debian:stretch as items
4
+
5
+RUN apt-get -qq update \
6
+	&& DEBIAN_FRONTEND=noninteractive apt-get -qq install -y --no-install-recommends git ca-certificates \
7
+	&& rm -rf /var/lib/apt/lists/*
8
+
9
+RUN git clone --depth 1 https://github.com/WFCD/warframe-items.git /tmp/warframe-items
10
+
11
+# Add our HTML and the JSON from warframe-items to nginx's default directory
12
+
13
+FROM nginx
14
+
15
+RUN rm -rf /usr/share/nginx/html
16
+
17
+COPY html /usr/share/nginx/html
18
+COPY --from=items /tmp/warframe-items/data/json /usr/share/nginx/html/data

+ 0
- 15
docker-compose.yml View File

@@ -1,15 +0,0 @@
1
----
2
-
3
-version: '2'
4
-
5
-services:
6
-
7
-  nginx:
8
-    image: nginx:latest
9
-    restart: always
10
-    labels:
11
-      com.chameth.vhost: 'wf.c5h.io'
12
-      com.chameth.proxy: '80'
13
-    volumes:
14
-      - ./html:/usr/share/nginx/html:ro
15
-

Loading…
Cancel
Save