From de1b0c3656a0edc5e3dc291eebbc16c6690d466c Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 11 Dec 2024 22:25:00 +0000 Subject: [PATCH] Basic Dockerfile lint --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c094f76..c05e5f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # This file is used if building for Production environments # It uses a multi-stage build to run jekyll to populate an nginx container -FROM docker.io/library/ruby:3.3 as build +FROM docker.io/library/ruby:3.3 AS build # Add Gem build requirements RUN apt-get update && apt-get install -y \ @@ -34,7 +34,7 @@ RUN bundle exec jekyll build --verbose #------------------------------------------------- # https://github.com/nginxinc/docker-nginx-unprivileged -FROM ghcr.io/nginxinc/nginx-unprivileged:stable-alpine as webserver +FROM ghcr.io/nginxinc/nginx-unprivileged:stable-alpine AS webserver RUN echo "absolute_redirect off;" >/etc/nginx/conf.d/no-absolute_redirect.conf RUN echo "gzip_static on; gzip_proxied any;" >/etc/nginx/conf.d/gzip_static.conf