-
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 a46d894
Showing
3 changed files
with
44 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
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 |
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,8 @@ | ||
FROM rust:1.73-slim-buster as builder | ||
RUN rustup target add wasm32-unknown-unknown | ||
RUN cargo install trunk | ||
# 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 | ||
COPY . . | ||
WORKDIR /track | ||
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 |