-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from theImmortalCoders/dev
Release 1.4
- Loading branch information
Showing
60 changed files
with
1,358 additions
and
416 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 |
---|---|---|
@@ -1,29 +1,15 @@ | ||
FROM --platform=$BUILDPLATFORM node:20.11.1-bullseye-slim as builder | ||
FROM node:20.11-alpine AS build | ||
|
||
RUN mkdir /project | ||
WORKDIR /project | ||
WORKDIR /dist/src/app | ||
|
||
RUN npm install -g @angular/cli@18 | ||
|
||
COPY "package.json" "package-lock.json" ./ | ||
RUN npm ci | ||
RUN npm cache clean --force | ||
|
||
COPY . . | ||
CMD ["ng", "serve", "--host", "0.0.0.0"] | ||
|
||
FROM builder as dev-envs | ||
|
||
RUN <<EOF | ||
apt-get update | ||
apt-get install -y --no-install-recommends git | ||
EOF | ||
|
||
RUN <<EOF | ||
useradd -s /bin/bash -m vscode | ||
groupadd docker | ||
usermod -aG docker vscode | ||
EOF | ||
RUN npm install | ||
RUN npm run build --prod | ||
|
||
COPY "/" . | ||
FROM nginx:latest AS ngi | ||
COPY --from=build /dist/src/app/dist/rag-2-frontend/browser /usr/share/nginx/html | ||
COPY /nginx.conf /etc/nginx/conf.d/default.conf | ||
|
||
CMD ["ng", "serve", "--host", "0.0.0.0"] | ||
EXPOSE 80 |
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
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,20 @@ | ||
server { | ||
listen 80; | ||
sendfile on; | ||
default_type application/octet-stream; | ||
|
||
gzip on; | ||
gzip_http_version 1.1; | ||
gzip_disable "MSIE [1-6]\."; | ||
gzip_min_length 256; | ||
gzip_vary on; | ||
gzip_proxied expired no-cache no-store private auth; | ||
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript; | ||
gzip_comp_level 9; | ||
|
||
root /usr/share/nginx/html; | ||
|
||
location / { | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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.