Skip to content

Commit

Permalink
Dockerfile case linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed Aug 8, 2024
1 parent e5f649e commit 5b367e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/library/ruby:3.1 as build
FROM docker.io/library/ruby:3.1 AS build

# Add Gem build requirements
RUN apt-get update && apt-get install -y \
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -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.1 as build
FROM docker.io/library/ruby:3.1 AS build

# Add Gem build requirements
RUN apt-get update && apt-get install -y \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5b367e3

Please sign in to comment.