5 Commits

Author SHA1 Message Date
3d8a2910cb temp 2025-01-01 22:37:48 +01:00
da2291b6e7 build: remove needless packages from the production Docker image (#77) 2025-01-01 21:14:34 +00:00
5b1df9577b build: add Docker files to the .dockerignore (#76) 2025-01-01 20:19:45 +00:00
f688c7c2fa build: remove needless packages from the production Docker image
All checks were successful
actionlint check / actionlint check (pull_request) Successful in 9s
GitLeaks check / GitLeaks check (pull_request) Successful in 14s
hadolint check / hadolint check (pull_request) Successful in 14s
htmlhint check / htmlhint check (pull_request) Successful in 22s
checkov check / checkov check (pull_request) Successful in 1m58s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 8s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 4s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 9s
markdownlint check / markdownlint check (pull_request) Successful in 22s
Prettier check / Prettier check (pull_request) Successful in 24s
Rust check / Rust check (pull_request) Successful in 31m50s
ShellCheck check / ShellCheck check (pull_request) Successful in 24s
Stylelint check / Stylelint check (pull_request) Successful in 25s
yamllint check / yamllint check (pull_request) Successful in 32s
2025-01-01 20:50:16 +01:00
3677cc343c build: add Docker files to the .dockerignore
All checks were successful
actionlint check / actionlint check (pull_request) Successful in 2m42s
checkov check / checkov check (pull_request) Successful in 1m59s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 4s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 2s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 8s
GitLeaks check / GitLeaks check (pull_request) Successful in 7s
hadolint check / hadolint check (pull_request) Successful in 31s
htmlhint check / htmlhint check (pull_request) Successful in 9s
markdownlint check / markdownlint check (pull_request) Successful in 11s
Prettier check / Prettier check (pull_request) Successful in 10s
ShellCheck check / ShellCheck check (pull_request) Successful in 22s
Stylelint check / Stylelint check (pull_request) Successful in 24s
yamllint check / yamllint check (pull_request) Successful in 22s
Rust check / Rust check (pull_request) Successful in 27m21s
2025-01-01 20:40:19 +01:00
6 changed files with 37 additions and 24 deletions

View File

@ -5,5 +5,8 @@
/node_modules/
/static/
/target/
/docker-compose-dev.yaml
/docker-compose-prod.yaml
.dockerignore
/docker-compose-dev.yml
/docker-compose-prod.yml
/docker/dev/app/Dockerfile
/docker/prod/app/Dockerfile

View File

@ -1,2 +1,2 @@
DATABASE_URL=postgres://app:app@db/todo_baggins
DATABASE_URL=postgres://app:app@localhost:5432/todo_baggins
LANGUAGE_CODE=en-US

11
Cargo.lock generated
View File

@ -3677,6 +3677,15 @@ version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
[[package]]
name = "openssl-src"
version = "300.4.1+3.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "faa4eac4138c62414b5622d1b31c5c304f34b406b013c079c2bbc652fdd6678c"
dependencies = [
"cc",
]
[[package]]
name = "openssl-sys"
version = "0.9.104"
@ -3685,6 +3694,7 @@ checksum = "45abf306cbf99debc8195b66b7346498d7b10c210de50418b5ccd7ceba08c741"
dependencies = [
"cc",
"libc",
"openssl-src",
"pkg-config",
"vcpkg",
]
@ -5133,6 +5143,7 @@ dependencies = [
"dioxus-query",
"dotenvy",
"feruca",
"openssl",
"serde",
"serde_json",
"serde_with",

View File

@ -22,21 +22,22 @@ diesel_migrations = { version = "2.2.0", features = ["postgres"], optional = tru
dotenvy = { version = "0.15.7", optional = true }
time = { version = "0.3.36", optional = true }
async-std = { version = "1.12.0", optional = true }
dioxus-i18n = { version = "0.3.0", optional = true }
dioxus-query = { version = "0.6.0", optional = true }
voca_rs = { version = "1.15.2", optional = true }
async-std = { version = "1.12.0" }
dioxus-i18n = { version = "0.3.0" }
dioxus-query = { version = "0.6.0" }
voca_rs = { version = "1.15.2" }
[target.'cfg(target_os = "android")'.dependencies]
openssl = { version = "0.10", features = ["vendored"] }
[features]
default = ["web"]
default = ["mobile"]
desktop = ["dioxus/desktop"]
mobile = ["dioxus/mobile"]
mobile = [
"dioxus/mobile",
]
web = [
"dioxus/web",
"dep:async-std",
"dep:dioxus-query",
"dep:dioxus-i18n",
"dep:voca_rs"
]
server = [
"dioxus/server",

View File

@ -13,11 +13,11 @@ stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
[program:dx]
command=dx serve --addr 0.0.0.0 --port 8000
directory=/srv/app
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
# [program:dx]
# command=dx serve --addr 0.0.0.0 --port 8000
# directory=/srv/app
# autostart=true
# autorestart=true
# stdout_logfile=/dev/fd/1
# stdout_logfile_maxbytes=0
# redirect_stderr=true

View File

@ -1,11 +1,9 @@
FROM rust@sha256:a45bf1f5d9af0a23b26703b3500d70af1abff7f984a7abef5a104b42c02a292b AS builder
RUN rustup target add wasm32-unknown-unknown \
&& cargo install dioxus-cli diesel_cli \
RUN cargo install dioxus-cli diesel_cli \
&& apt-get update && apt-get install -y --no-install-recommends \
nodejs=18.19.0+dfsg-6~deb12u2 \
npm=9.2.0~ds1-1 \
supervisor=4.2.5-1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*