diff --git a/Dockerfile-SmitheFrontend b/Dockerfile-SmitheFrontend index ae5aa12..0361f48 100644 --- a/Dockerfile-SmitheFrontend +++ b/Dockerfile-SmitheFrontend @@ -1,5 +1,11 @@ # Use Nginx as the base image FROM nginx:alpine +# Remove the default Nginx configuration file +RUN rm /etc/nginx/conf.d/default.conf + +# Copy the Nginx configuration file from your local frontend/nginx.conf to the container's Nginx conf directory +COPY frontend/nginx.conf /etc/nginx/conf.d/ + # Copy the dist folder from your local frontend/dist to the container's Nginx html directory COPY frontend/dist/ /usr/share/nginx/html/ diff --git a/Makefile b/Makefile index 5d1685f..de21165 100644 --- a/Makefile +++ b/Makefile @@ -89,6 +89,10 @@ build-frontend: serve-frontend: trunk serve ./frontend/index.html +.PHONY: run-image-backend +run-image-backend: + node ./image-upload-backend/app.js + # PYTHON .PHONY: py-install-reqs py-install-reqs: diff --git a/backend-service.yml b/backend-service.yml index 7cbb560..4a504dd 100644 --- a/backend-service.yml +++ b/backend-service.yml @@ -3,11 +3,10 @@ kind: Service metadata: name: backend-service spec: - type: NodePort + type: LoadBalancer selector: app: backend ports: - protocol: TCP port: 8000 targetPort: 8000 - nodePort: 31112 diff --git a/frontend/index.html b/frontend/index.html index 7203f84..54e0727 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -21,7 +21,9 @@ crossorigin="anonymous" referrerpolicy="no-referrer" /> - +