-
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.
Co-authored-by: Alexandre Hanot <>
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
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,20 @@ | ||
FROM rust:slim-bookworm | ||
|
||
# Install wasm | ||
RUN rustup target add wasm32-unknown-unknown | ||
|
||
# Install trunk | ||
RUN cargo install --locked trunk | ||
|
||
# Copy the source code into the container | ||
COPY . . | ||
|
||
# Build the application using Trunk | ||
WORKDIR /applications/web | ||
|
||
# Expose the port | ||
EXPOSE 8080 | ||
|
||
# Start a server and serve static files | ||
CMD [ "trunk", "serve" ] | ||
|
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,4 +1,8 @@ | ||
dev: | ||
(cd applications/web && trunk serve) | ||
|
||
|
||
build: | ||
docker build -t todolist . | ||
|
||
start: | ||
docker run -p 8080:8080 todolist |
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,10 @@ | ||
[watch] | ||
# Paths to watch. The `build.target`'s parent folder is watched by default. | ||
watch = [ | ||
"../../drivers/ui/src", | ||
"../../interactions/src", | ||
] | ||
|
||
[serve] | ||
# The address to serve on. | ||
address = "0.0.0.0" |