-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update dockerfile to handle building binary * inject index info at runtime
- Loading branch information
1 parent
6825788
commit be59611
Showing
4 changed files
with
64 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/web/src/node_modules/ | ||
/bin/ | ||
smoketest_db_dump |
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,5 +1,14 @@ | ||
FROM node:10 AS UI | ||
COPY . /build | ||
RUN cd /build && make web/src/build/index.html | ||
|
||
FROM golang:alpine AS BE | ||
COPY --from=UI /build /build | ||
RUN apk --no-cache add git make | ||
RUN cd /build && make bin/goalert BUNDLE=1 | ||
|
||
FROM alpine | ||
RUN apk --no-cache add tzdata ca-certificates | ||
COPY goalert /usr/bin/ | ||
COPY --from=BE /build/bin/goalert /usr/bin/ | ||
CMD ["/usr/bin/goalert"] | ||
ENV GOALERT_LISTEN :8081 |
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