-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:Shock-Link/WebUI into develop
- Loading branch information
Showing
39 changed files
with
1,159 additions
and
470 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 |
---|---|---|
@@ -1,2 +1,18 @@ | ||
FROM nginx:1-alpine | ||
|
||
ENV SHOCKLINK_API_URL=https://api.shocklink.net | ||
ENV SHOCKLINK_WEBUI_URL=https://shocklink.net/#/ | ||
ENV SHOCKLINK_SHARE_URL=https://shockl.ink/ | ||
|
||
# Copy release artifacts (static JS and CSS bundles) | ||
COPY dist /usr/share/nginx/html | ||
|
||
# Copy custom startup script. | ||
# This script performs environment variable substitution! | ||
COPY startup.sh . | ||
RUN ["chmod", "+x", "/startup.sh"] | ||
|
||
# Start up nginx using the alternative entrypoint, but with the default CMD. | ||
# See: https://github.com/nginxinc/docker-nginx/blob/master/mainline/debian/Dockerfile#L113-L119 | ||
ENTRYPOINT ["/startup.sh"] | ||
CMD ["nginx", "-g", "daemon off;"] |
Oops, something went wrong.