Skip to content

Commit 0692d54

Browse files
committed
nicer dockerfile
1 parent ba5e10a commit 0692d54

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

hack/Dockerfile.nginx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM nginx:alpine
2+
3+
# Copy the UKI file to nginx html directory
4+
COPY target/uki.efi /usr/share/nginx/html/feos.uki
5+
6+
# Add MIME type for .uki files
7+
RUN echo 'application/efi uki;' >> /etc/nginx/mime.types
8+
9+
# Create a simple index page
10+
RUN echo '<html><body><h1>FeOS UKI Server</h1><p><a href="/feos.uki">Download FeOS UKI (x86_64)</a></p></body></html>' > /usr/share/nginx/html/index.html
11+
12+
EXPOSE 80

0 commit comments

Comments
 (0)