-
Notifications
You must be signed in to change notification settings - Fork 5
/
Containerfile
20 lines (17 loc) · 689 Bytes
/
Containerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# **Description:**
# > IMPORTANT NOTE: This is BOOTC. This is meant for bootable container applications. See: https://github.com/containers/podman-desktop-extension-bootc
#
# This Containerfile creates a simple httpd server on CentOS Stream 9. So you can run a web server on boot. This will be accessible on port 80.
#
# **Running:**
# 1. Boot OS
# 2. Visit <ip>:80
FROM quay.io/centos-bootc/centos-bootc:stream9
#! Install HTTP
RUN dnf -y install httpd && \
systemctl enable httpd && \
mv /var/www /usr/share/www && \
sed -ie 's,/var/www,/usr/share/www,' /etc/httpd/conf/httpd.conf
#! Copy over files
RUN rm /usr/share/httpd/noindex -rf
COPY index.html /usr/share/www/html