-
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
6e2c6da
commit 9fa600c
Showing
4 changed files
with
57 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM rust:1.73-slim-buster as base-builder | ||
RUN rustup target add wasm32-unknown-unknown | ||
RUN cargo install trunk | ||
# Upload this image as track-client-base-builder | ||
# rebuild=2 |
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,10 +1,10 @@ | ||
FROM rust:1.73-slim-buster as builder | ||
RUN rustup target add wasm32-unknown-unknown | ||
RUN cargo install trunk | ||
COPY . . | ||
# The base builder will have trunk installed | ||
FROM us-central1-docker.pkg.dev/hubs-dev-333333/ocho-osai/johnshaughnessy/track/track-client-base-builder as builder | ||
WORKDIR /track | ||
COPY . . | ||
RUN ls -la | ||
RUN ls -la web-client/ | ||
RUN trunk build web-client/index.html # Build once so that dependencies are cached | ||
RUN rm -rf web-client/dist # The built files are not needed in the final image | ||
|
||
# Changes to this file will cause the workflow to rebuild the builder image | ||
# Rebuild=1 | ||
# Upload this image as track-client-builder |