rename: Dockerfile --> Containerfile
All checks were successful
continuous-integration/drone/push Build is passing

keep Dockerfile as a symlink for backwards compatibility
This commit is contained in:
surtur 2022-04-20 19:02:00 +02:00
parent b2a6f449e1
commit b9e0cac443
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
4 changed files with 36 additions and 35 deletions

View File

@ -13,7 +13,7 @@ steps:
image: hadolint/hadolint:v2.9.3-alpine
commands:
- hadolint --version
- hadolint Dockerfile
- hadolint Containerfile
when:
ref:
- refs/heads/master
@ -27,7 +27,7 @@ steps:
pull: always
image: immawanderer/drone-kaniko:linux-amd64
settings:
dockerfile: Dockerfile
dockerfile: Containerfile
context: .
when:
ref:
@ -41,7 +41,7 @@ steps:
pull: always
image: immawanderer/drone-kaniko:linux-amd64
settings:
dockerfile: Dockerfile
dockerfile: Containerfile
context: .
tags:
- latest

31
Containerfile Normal file
View File

@ -0,0 +1,31 @@
FROM immawanderer/archlinux:linux-amd64
ENV HUGO_VERSION 0.97.3
ARG BUILD_DATE
ARG VCS_REF
LABEL description="Container image for building websites with Hugo static site generator."
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://git.dotya.ml/wanderer/docker-archlinux-hugo.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.license=GPL-3.0
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz /tmp/hugo.tar.gz
WORKDIR /tmp/
RUN pacman -Syu --noconfirm --needed git && \
pacman --noconfirm -Rn "$(pacman -Qdtq)" || true && \
\
bsdtar xfv /tmp/hugo.tar.gz && rm -v /tmp/hugo.tar.gz README.md LICENSE && \
chmod +x /tmp/hugo && \
mkdir -pv /usr/local/bin && \
mv -v /tmp/hugo /usr/local/bin/ && \
\
pacman -Scc && rm -rf /var/cache/pacman/* /var/lib/pacman/sync/* && \
rm -rf /usr/share/zoneinfo/*; \
rm -rf /usr/share/i18n/*; \
rm -rf /usr/include/*; \
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete
WORKDIR /

View File

@ -1,31 +0,0 @@
FROM immawanderer/archlinux:linux-amd64
ENV HUGO_VERSION 0.97.3
ARG BUILD_DATE
ARG VCS_REF
LABEL description="Docker image for building websites with Hugo static site generator."
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://git.dotya.ml/wanderer/docker-archlinux-hugo.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.license=GPL-3.0
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz /tmp/hugo.tar.gz
WORKDIR /tmp/
RUN pacman -Syu --noconfirm --needed git && \
pacman --noconfirm -Rn "$(pacman -Qdtq)" || true && \
\
bsdtar xfv /tmp/hugo.tar.gz && rm -v /tmp/hugo.tar.gz README.md LICENSE && \
chmod +x /tmp/hugo && \
mkdir -pv /usr/local/bin && \
mv -v /tmp/hugo /usr/local/bin/ && \
\
pacman -Scc && rm -rf /var/cache/pacman/* /var/lib/pacman/sync/* && \
rm -rf /usr/share/zoneinfo/*; \
rm -rf /usr/share/i18n/*; \
rm -rf /usr/include/*; \
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete
WORKDIR /

1
Dockerfile Symbolic link
View File

@ -0,0 +1 @@
Containerfile

View File

@ -3,7 +3,7 @@
[![Build Status](https://drone.dotya.ml/api/badges/wanderer/docker-archlinux-hugo/status.svg?ref=refs/heads/master)](https://drone.dotya.ml/wanderer/docker-archlinux-hugo)
[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/immawanderer/archlinux-hugo)](https://hub.docker.com/r/immawanderer/archlinux-hugo/builds)
This repository provides the Dockerfile to create a Docker image used for web developent using [Hugo](https://gohugo.io) website building framework.
This repository provides a Containerfile to create a container image used for web developent using [Hugo](https://gohugo.io) website building framework.
## :warning: :construction: DockerHub issue :construction: :warning:
unless you're running Arch (or a Fedora 34+ or some reasonably recent thing) as your host OS, please make sure you read through the following issue write-up (since DH issue affects the base image it affects this one, too) \