forked from UniversalViewer/universalviewer
-
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.
Docker support and IISH specific updates and changes
- Loading branch information
Showing
21 changed files
with
1,028 additions
and
154 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,25 @@ | ||
FROM node:lts-alpine AS builder | ||
|
||
# Install tooling | ||
RUN apk --no-cache add git python3 make build-base | ||
|
||
# Copy the application | ||
RUN mkdir -p /app | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
# Install the application dependencies and build the application | ||
RUN npm install | ||
RUN npm run build | ||
|
||
# Create the actual image | ||
FROM nginx:stable-alpine | ||
|
||
# Copy the build | ||
COPY --from=builder /app/entrypoint.sh /opt/entrypoint.sh | ||
COPY --from=builder /app/dist /usr/share/nginx/html | ||
WORKDIR /usr/share/nginx/html | ||
|
||
# Run web server | ||
ENTRYPOINT ["/opt/entrypoint.sh"] | ||
CMD ["nginx", "-g", "daemon off;"] |
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,9 @@ | ||
#!/bin/sh | ||
|
||
mv /usr/share/nginx/html/default.html /usr/share/nginx/html/index.html | ||
|
||
case "$UV_PROFILE" in | ||
"iish") mv /usr/share/nginx/html/iish.css /usr/share/nginx/html/default.css ;; | ||
esac | ||
|
||
exec "/docker-entrypoint.sh" "$@" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.