-
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.
- Loading branch information
1 parent
378d5ac
commit 3d1683e
Showing
1 changed file
with
8 additions
and
7 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,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 |