diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a6e5c85 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# Use the official Nginx image from Docker Hub +FROM nginx:alpine + +ARG VERSION=dev + +# Copy website files into the Nginx server's root directory +COPY /website /usr/share/nginx/html +COPY default.conf /etc/nginx/conf.d/default.conf + +# Replace __VERSION__ in all .html files +RUN sh -c 'find /usr/share/nginx/html -type f -name "*.html" -exec sed -i "s/__VERSION__/${VERSION}/g" {} +' + +# Expose port 80 +EXPOSE 80 \ No newline at end of file