From 66b59781d56f230248f8bd9f3c8b80aeeae88455 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 9 Oct 2020 21:51:58 +0100 Subject: [PATCH] Remove docker config We're on GitLab pages now! --- .dockerignore | 4 --- Dockerfile | 26 ------------------- docker-compose.yml | 11 -------- nginx.conf | 65 ---------------------------------------------- 4 files changed, 106 deletions(-) delete mode 100644 .dockerignore delete mode 100644 Dockerfile delete mode 100644 docker-compose.yml delete mode 100644 nginx.conf diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 590faaa..0000000 --- a/.dockerignore +++ /dev/null @@ -1,4 +0,0 @@ -public/ -resources/ -node_modules/ -.cache/ diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 692503a..0000000 --- a/Dockerfile +++ /dev/null @@ -1,26 +0,0 @@ -# Site Build -FROM node:lts-slim as build - -ENV NODE_ENV production - -ENV HUGO_VERSION=0.73.0 - -WORKDIR /app - -RUN apt-get update && apt-get install -y ca-certificates - -COPY . /app - -RUN npm ci --production - -ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb /tmp/hugo.deb -RUN dpkg -i /tmp/hugo.deb - -RUN ./scripts/release.sh - -# Production run -FROM nginx:stable-alpine - -COPY nginx.conf /etc/nginx/nginx.conf - -COPY --from=build /app/public/ /usr/share/nginx/html diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 55074e5..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,11 +0,0 @@ -version: "2.3" - -services: - website: - build: - context: . - volumes: - - "./public:/usr/share/nginx/html:ro" - - "./nginx.conf:/etc/nginx/nginx.conf:ro" - ports: - - "80:80" diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index a4635cf..0000000 --- a/nginx.conf +++ /dev/null @@ -1,65 +0,0 @@ -user nginx; -worker_processes auto; - -error_log stderr; -pid /var/run/nginx.pid; - - -events { - worker_connections 1024; -} - - -http { - include /etc/nginx/mime.types; - - access_log /dev/stdout; - - server_tokens off; - - sendfile on; - - keepalive_timeout 65; - - gzip on; - gzip_static on; - - gzip_types *; - - server { - listen 80; - server_name theorangeone.net; - root /usr/share/nginx/html; - index index.html; - - set_real_ip_from 0.0.0.0/0; - real_ip_header X-Forwarded-For; - - add_header X-Frame-Options "SAMEORIGIN"; - add_header X-XSS-Protection "1; mode=block"; - add_header X-Content-Type-Options "nosniff"; - add_header Referrer-Policy "same-origin"; - add_header Strict-Transport-Security "max-age=5184000"; - - location /ping { - return 200 "PONG"; - } - - location ~* \.(png|jpg|gif|svg|txt|css|js|xml|eot|ttf|woff2|woff)$ { - add_header Cache-Control "public, max-age=0, must-revalidate"; - } - - location = /favicon.ico { - return 302 /img/logo-transparent.png; - } - - error_page 404 /404.html; - error_page 500 502 503 504 /50x.html; - } - - server { - listen 80; - server_name www.theorangeone.net; - return 303 $scheme://theorangeone.net$request_uri; - } -}