-
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
f0a903a
commit 3f99aba
Showing
3 changed files
with
8 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
FROM node:current as web_builder | ||
FROM node:current as builder | ||
|
||
WORKDIR /build | ||
|
||
# Add Web Files | ||
# Add Files | ||
ADD . . | ||
ADD package.json . | ||
ADD yarn.lock . | ||
|
||
# Build | ||
RUN yarn install && yarn build | ||
RUN yarn install && yarn workspace frontend build | ||
|
||
FROM docker.io/nginx:1-alpine | ||
|
||
COPY --from=web_builder /build/dist /usr/share/nginx/html | ||
COPY --from=builder /build/frontend/dist /usr/share/nginx/html | ||
ADD nginx.conf /etc/nginx/nginx.conf |