re-org config file, copy onbuild instead of volumes FTTB
This commit is contained in:
parent
abe050f00c
commit
a0f11c9d0d
@ -10,4 +10,6 @@ COPY . .
|
||||
|
||||
RUN echo "Building Laconic Explorer" && \
|
||||
git checkout master && \
|
||||
yarn && yarn serve
|
||||
yarn
|
||||
|
||||
CMD ["yarn serve"]
|
||||
|
||||
2
app/data/container-build/cerc-nginx/Dockerfile
Normal file
2
app/data/container-build/cerc-nginx/Dockerfile
Normal file
@ -0,0 +1,2 @@
|
||||
FROM nginx:alpine
|
||||
COPY ping.conf /etc/nginx/conf.d/default.conf
|
||||
7
app/data/container-build/cerc-nginx/build.sh
Normal file
7
app/data/container-build/cerc-nginx/build.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build cerc/nginx
|
||||
|
||||
# See: https://stackoverflow.com/a/246128/1701505
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
docker build -t cerc/nginx:local ${SCRIPT_DIR}
|
||||
33
app/data/container-build/cerc-nginx/ping.conf
Normal file
33
app/data/container-build/cerc-nginx/ping.conf
Normal file
@ -0,0 +1,33 @@
|
||||
## copied from: https://github.com/gateway-fm/laconic-explorer/blob/master/ping.conf
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name _;
|
||||
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
#error_page 404 /404.html;
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
gzip on;
|
||||
gzip_proxied any;
|
||||
gzip_static on;
|
||||
gzip_min_length 1024;
|
||||
gzip_buffers 4 16k;
|
||||
gzip_comp_level 2;
|
||||
gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php application/vnd.ms-fontobject font/ttf font/opentype font/x-woff image/svg+xml;
|
||||
gzip_vary off;
|
||||
gzip_disable "MSIE [1-6]\.";
|
||||
}
|
||||
@ -25,3 +25,4 @@ cerc/keycloak
|
||||
cerc/tx-spammer
|
||||
cerc/builder-gerbil
|
||||
cerc/laconic-explorer
|
||||
cerc/nginx
|
||||
|
||||
Loading…
Reference in New Issue
Block a user