web-ci/Dockerfile
mrinc 64e3b38876 chore(build.yml): update matrix for hugo-version, node-version, and go-version
chore(build.yml): update build-args and tags for docker build
chore(Dockerfile): add NODE_VERSION argument and update wget and tar commands
chore(README.md): update README with information about the latest docker container and usage instructions
2023-07-25 11:51:07 +02:00

20 lines
No EOL
608 B
Docker

ARG HUGO_VERSION=0.115.4
ARG NODE_VERSION=18
FROM golang:1.20.6-bullseye
RUN apt update -y
RUN apt install tar gzip build-essential -y
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs
RUN npm i -g yarn pnpm
RUN mkdir /tmp/temph
RUN mkdir /home/app
WORKDIR /tmp/temph
RUN wget "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz"
RUN tar xf "hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz"
RUN mv ./hugo /usr/bin/hugo
WORKDIR /home/app
# Cleanup
RUN rm -rfv /tmp/temph
ENTRYPOINT [ "/bin/bash" ]