-
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 #1 from hydroshare:discoverapi
Discoverapi
- Loading branch information
Showing
6 changed files
with
16 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
dist | ||
node_modules | ||
**/dist | ||
**/node_modules |
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,2 @@ | ||
VUE_APP_BUCKET_URL_PUBLIC_PATH=/ | ||
VUE_APP_HYDROSHARE_URL=https://beta.hydroshare.org | ||
VUE_APP_HYDROSHARE_URL=http://localhost:8000 |
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,14 +1,15 @@ | ||
FROM node:14.14.0 as node-build | ||
# Build stage | ||
FROM node:14.14.0 as build-stage | ||
|
||
# Arg used by the node build for discovery app | ||
# This is the path to the bucket where the static files are stored | ||
# This should be the same as the STATIC_URL in the Django settings | ||
ARG VUE_APP_BUCKET_URL_PUBLIC_PATH | ||
ARG VUE_APP_HYDROSHARE_URL | ||
|
||
ADD . / | ||
|
||
WORKDIR / | ||
|
||
RUN npm install && \ | ||
npm run build | ||
npm run build | ||
|
||
# Production stage | ||
FROM nginx:alpine | ||
|
||
COPY --from=build-stage /dist /dist |
Empty file.
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