Skip to content

Instantly share code, notes, and snippets.

Last active July 20, 2021 00:43
What would you like to do?
Building a basic container
FROM nginx:1.21.0
RUN rm -rf /etc/nginx/conf.d/default.conf
ADD index.html /var/www/html/index.html
ADD nginx.conf /etc/nginx/conf.d/nginx.conf
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>Hello Kubernetes</title>
Hello from Kubernetes.
This is nginx serving a static asset.
server {
index index.php index.html;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/html;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment