diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..7474287 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.git +.gitignore +landing-page-deploy.zip + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..389997f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM nginx:1.27-alpine + +# Serve the static landing page through Nginx on port 80. +COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY . /usr/share/nginx/html + +EXPOSE 80 + diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..306de3c --- /dev/null +++ b/nginx.conf @@ -0,0 +1,12 @@ +server { + listen 80; + server_name _; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ =404; + } +} +