mirror of
https://github.com/KevinMidboe/planetposen-original.git
synced 2025-12-29 21:31:12 +00:00
Containerize site and serve with caddy
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# Use official Caddy image
|
||||||
|
FROM caddy:2-alpine
|
||||||
|
|
||||||
|
# Copy Caddy configuration
|
||||||
|
COPY Caddyfile /etc/caddy/Caddyfile
|
||||||
|
|
||||||
|
# Copy static site files
|
||||||
|
COPY css /srv/css
|
||||||
|
COPY en /srv/en
|
||||||
|
COPY no /srv/no
|
||||||
|
COPY index.html /srv
|
||||||
|
|
||||||
|
# Expose HTTP port
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
# Explicitly run Caddy
|
||||||
|
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]
|
||||||
Reference in New Issue
Block a user