-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add title generation Signed-off-by: Mirko Mollik <[email protected]> * fix: update angular core Signed-off-by: Mirko Mollik <[email protected]> * fix: update angular core Signed-off-by: Mirko Mollik <[email protected]> * fix: update angular material Signed-off-by: Mirko Mollik <[email protected]> * fix: ssr Signed-off-by: Mirko Mollik <[email protected]> * add docker build image Signed-off-by: Mirko Mollik <[email protected]> * optimize og integration for seo Signed-off-by: Mirko Mollik <[email protected]> --------- Signed-off-by: Mirko Mollik <[email protected]>
- Loading branch information
Showing
34 changed files
with
1,501 additions
and
1,067 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Stage 1: Build the Angular application | ||
FROM node:18-alpine AS build | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy the package.json and package-lock.json files | ||
COPY package*.json ./ | ||
|
||
# Install dependencies | ||
RUN npm ci | ||
|
||
# Copy the rest of the application code | ||
COPY . . | ||
|
||
# Build the Angular application | ||
RUN npm run build:ssr | ||
|
||
# Stage 2: Serve the application using Node.js | ||
FROM node:18-alpine | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy the built application from the previous stage | ||
COPY --from=build /app/dist /app/dist | ||
|
||
# Install only production dependencies | ||
COPY package*.json ./ | ||
RUN npm install --only=production | ||
|
||
# Expose the port the app runs on | ||
EXPOSE 4000 | ||
|
||
# Start the application | ||
CMD ["npm", "run", "serve:ssr:viewer"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.