Skip to content

Commit

Permalink
dixus built at runtime using docker, trying at build
Browse files Browse the repository at this point in the history
  • Loading branch information
oceanbluesky committed Dec 8, 2024
1 parent e06a551 commit c3a1655
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ edition = "2021"


[dependencies]
dioxus = { version = "^0.5.6", features = ["router", "web"] }
dioxus-web = "^0.5.6"
dioxus-router = "^0.5.6"
dioxus = { version = "^0.6.0", features = ["router", "web"] }
dioxus-web = "^0.6.0"
dioxus-router = "^0.6.0"
serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"
stylist = "^0.13"
manganis = "^0.2"
manganis = "^0.6.0"

# Allow wasm-bindgen to update dynamically while staying within major version 0.2
wasm-bindgen = "^0.2.97"
wasm-bindgen = "^0.2.99"


[web.watcher]
Expand Down
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,14 @@ RUN mkdir -p dist/assets/styles
# Expose port
EXPOSE 8080

# Add these lines near the end, before CMD
# error logging
RUN echo "Current directory contents:" && ls -la
RUN echo "Dist directory contents:" && ls -la dist
RUN echo "Assets directory contents:" && ls -la dist/assets

# Change CMD to be more verbose
# Explist build step for the Diouxus application
RUN dx build --release --platform web

# CMD verbose
CMD ["sh", "-c", "npm run serve && echo 'Server started' && sleep infinity"]

0 comments on commit c3a1655

Please sign in to comment.