rename: Dockerfile --> Containerfile
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
keep Dockerfile as a symlink for backwards compatibility
This commit is contained in:
parent
b2a6f449e1
commit
b9e0cac443
@ -13,7 +13,7 @@ steps:
|
|||||||
image: hadolint/hadolint:v2.9.3-alpine
|
image: hadolint/hadolint:v2.9.3-alpine
|
||||||
commands:
|
commands:
|
||||||
- hadolint --version
|
- hadolint --version
|
||||||
- hadolint Dockerfile
|
- hadolint Containerfile
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/master
|
- refs/heads/master
|
||||||
@ -27,7 +27,7 @@ steps:
|
|||||||
pull: always
|
pull: always
|
||||||
image: immawanderer/drone-kaniko:linux-amd64
|
image: immawanderer/drone-kaniko:linux-amd64
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Containerfile
|
||||||
context: .
|
context: .
|
||||||
when:
|
when:
|
||||||
ref:
|
ref:
|
||||||
@ -41,7 +41,7 @@ steps:
|
|||||||
pull: always
|
pull: always
|
||||||
image: immawanderer/drone-kaniko:linux-amd64
|
image: immawanderer/drone-kaniko:linux-amd64
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Containerfile
|
||||||
context: .
|
context: .
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
|
31
Containerfile
Normal file
31
Containerfile
Normal 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 /
|
31
Dockerfile
31
Dockerfile
@ -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
1
Dockerfile
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
Containerfile
|
@ -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)
|
[![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)
|
[![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:
|
## :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) \
|
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) \
|
||||||
|
Loading…
Reference in New Issue
Block a user