Not being able to make kubernetes, could someone help me?
I'm not able to upload the image build, it gives an error in the dockerfile, how do I do the dockerfile:
Install the container's OS.
FROM ubuntu:latest as HUGOINSTALL
RUN apt-get update
RUN apt-get install hugo
Copy the contents of the current working directory to the hugo-site
directory. The directory will be created if it doesn't exist.
COPY . /hugo-site
Use Hugo to build the static site files.
RUN hugo -v --source=/hugo-site --destination=/hugo-site/public
Install NGINX and deactivate NGINX's default index.html file.
Move the static site files to NGINX's html directory.
This directory is where the static site files will be served from by NGINX.
RUN mv /usr/share/nginx/html/index.html /usr/share/nginx/html/old-index.html
COPY --from=HUGOINSTALL /hugo-site/public/ /usr/share/nginx/html/
The container will listen on port 80 using the TCP protocol.
Another question, I'm name here, I wanted to know how to put dockerfile error image