# Use nginx to serve the static HTML file
FROM nginx:alpine
# Copy the HTML file to nginx's default serving directory
COPY tax.html /usr/share/nginx/html/index.html
# Copy JavaScript files for vehicle autocomplete system
COPY vehicle-database.js /usr/share/nginx/html/vehicle-database.js
COPY vehicle-search.js /usr/share/nginx/html/vehicle-search.js
# Expose port 80
EXPOSE 80
# nginx will start automatically with the default CMD from the base image