diff --git a/Dockerfile b/Dockerfile index 8aacdd7..cd39456 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,14 +23,11 @@ FROM nginx:latest RUN mkdir /app # Copy the built application from the builder stage to the Nginx html directory -COPY --from=builder dist/angular-starter /usr/share/nginx/html -COPY --from=builder dist/angular-starter /app +COPY --from=builder dist/skrill /app # Copy the custom Nginx configuration file -COPY config/default.conf /etc/nginx/conf.d/default.conf -# COPY config/default.conf test.txt +COPY config/nginx.conf /etc/nginx/conf.d/default.conf -# Expose port 80 EXPOSE 80 # Start Nginx diff --git a/README.md b/README.md index 0c3d7fa..9de018b 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,7 @@ $ npm run start ## Docker Deployment ``` +npm run build:prod podman build -t skrill . podman exec -it skrill-frontend_app_1 bash podman compose up diff --git a/angular.json b/angular.json index 9399898..d6cdbd8 100644 --- a/angular.json +++ b/angular.json @@ -13,16 +13,13 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "outputPath": "dist/angular-starter", + "outputPath": "dist/skrill", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "tsconfig.app.json", "assets": ["src/favicon.ico", "src/assets"], - "styles": [ - "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", - "src/styles.css" - ], + "styles": ["./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "src/styles.css"], "scripts": [], "vendorChunk": true, "extractLicenses": false, diff --git a/config/default.conf b/config/nginx.conf similarity index 100% rename from config/default.conf rename to config/nginx.conf