[help.gnome.org/oscp: 3/3] Add Dockerfile for nginx
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [help.gnome.org/oscp: 3/3] Add Dockerfile for nginx
- Date: Mon, 10 Feb 2020 09:56:43 +0000 (UTC)
commit 5a1b933c76c42e5c73d8261bffa582b6cf898a8c
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Mon Feb 10 10:51:15 2020 +0100
Add Dockerfile for nginx
nginx/Dockerfile | 6 ++++++
nginx/nginx.conf | 7 +++++++
2 files changed, 13 insertions(+)
---
diff --git a/nginx/Dockerfile b/nginx/Dockerfile
new file mode 100644
index 0000000..002dfb4
--- /dev/null
+++ b/nginx/Dockerfile
@@ -0,0 +1,6 @@
+FROM pintail:latest
+RUN cd /opt/help-web && pintail build -v
+
+FROM nginxinc/nginx-unprivileged:stable-alpine
+COPY --from=0 /opt/help-web/__pintail__/build /var/www/help
+ADD nginx.conf /etc/nginx/conf.d/help.conf
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
new file mode 100644
index 0000000..648eb33
--- /dev/null
+++ b/nginx/nginx.conf
@@ -0,0 +1,7 @@
+server {
+ listen 8080 default_server;
+ listen [::]:8080 default_server;
+ server_name _;
+ root /var/www/help;
+ index index.html;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]