re-org config file, copy onbuild instead of volumes FTTB

This commit is contained in:
zramsay 2023-02-14 13:53:44 -05:00
parent abe050f00c
commit a0f11c9d0d
No known key found for this signature in database
GPG Key ID: FECD2DBFAE9DBE63
6 changed files with 46 additions and 1 deletions

View File

@ -10,4 +10,6 @@ COPY . .
RUN echo "Building Laconic Explorer" && \
git checkout master && \
yarn && yarn serve
yarn
CMD ["yarn serve"]

View File

@ -0,0 +1,2 @@
FROM nginx:alpine
COPY ping.conf /etc/nginx/conf.d/default.conf

View 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}

View 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]\.";
}

View File

@ -25,3 +25,4 @@ cerc/keycloak
cerc/tx-spammer
cerc/builder-gerbil
cerc/laconic-explorer
cerc/nginx