-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* React to input change * React * Only pass single parameter * Fix project * temp commit * Resolve some problems * Fixed some stuff * Fixed issue * Dockerfile * Fix tests
- Loading branch information
1 parent
1c45f7e
commit 675f34c
Showing
47 changed files
with
624 additions
and
159 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
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,5 @@ | ||
{ | ||
"jsc": { | ||
"target": "es2020" | ||
} | ||
} |
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,34 @@ | ||
# Stage 1: Compile and Build angular codebase | ||
|
||
# Use official node image as the base image | ||
FROM node:latest as node_image | ||
|
||
# Set the working directory | ||
WORKDIR /usr/local/app | ||
|
||
# Add the source code to app | ||
COPY ../.. /usr/local/app/ | ||
|
||
# Install all the dependencies | ||
RUN npm install | ||
|
||
# Generate the build of the application | ||
RUN npx nx run react-demo:build:production | ||
|
||
|
||
# Stage 2: Serve app with nginx server | ||
|
||
# Use official nginx image as the base image | ||
FROM nginx:latest | ||
LABEL org.opencontainers.image.source="https://github.com/MintPlayer/mintplayer-ng-video-player" | ||
|
||
# Copy the build output to replace the default nginx contents. | ||
COPY --from=node_image /usr/local/app/dist/apps/react-demo /usr/share/nginx/html | ||
COPY --from=node_image /usr/local/app/nginx.conf /etc/nginx/conf.d/default.conf | ||
|
||
# Expose port 80 | ||
EXPOSE 80 | ||
|
||
# docker build --tag 'ng-bootstrap-demo' . | ||
# docker run -p 4201:80 ng-bootstrap-demo | ||
# Visit http://localhost:4201 |
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
/* You can add global styles to this file, and also import other style files */ | ||
.cursor-pointer { | ||
cursor: pointer; | ||
} |
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 |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
* e.g. | ||
* .container { | ||
* } | ||
*/ | ||
*/ |
Oops, something went wrong.