alamin655 commited on
Commit
e4625c3
2 Parent(s): c5db7cc a0565f1

Merge pull request #144 from neon-mmd/patch-and-improve-dockerfile

Browse files
Files changed (3) hide show
  1. Cargo.lock +42 -42
  2. Cargo.toml +1 -1
  3. Dockerfile +3 -3
Cargo.lock CHANGED
@@ -190,7 +190,7 @@ dependencies = [
190
  "serde_urlencoded 0.7.1",
191
  "smallvec 1.11.0",
192
  "socket2",
193
- "time 0.3.22",
194
  "url 2.4.0",
195
  ]
196
 
@@ -201,7 +201,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
201
  checksum = "2262160a7ae29e3415554a3f1fc04c764b1540c116aa524683208078b7a75bc9"
202
  dependencies = [
203
  "actix-router",
204
- "proc-macro2 1.0.63",
205
  "quote 1.0.29",
206
  "syn 1.0.109",
207
  ]
@@ -571,7 +571,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
571
  checksum = "e859cd57d0710d9e06c381b550c06e76992472a8c6d527aecd2fc673dcc231fb"
572
  dependencies = [
573
  "percent-encoding 2.3.0",
574
- "time 0.3.22",
575
  "version_check",
576
  ]
577
 
@@ -784,7 +784,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
784
  checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
785
  dependencies = [
786
  "quote 1.0.29",
787
- "syn 2.0.23",
788
  ]
789
 
790
  [[package]]
@@ -794,7 +794,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
794
  checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321"
795
  dependencies = [
796
  "convert_case",
797
- "proc-macro2 1.0.63",
798
  "quote 1.0.29",
799
  "rustc_version 0.4.0",
800
  "syn 1.0.109",
@@ -922,7 +922,7 @@ version = "0.1.8"
922
  source = "registry+https://github.com/rust-lang/crates.io-index"
923
  checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4"
924
  dependencies = [
925
- "proc-macro2 1.0.63",
926
  "quote 1.0.29",
927
  "syn 1.0.109",
928
  "synstructure",
@@ -1219,7 +1219,7 @@ dependencies = [
1219
  "log",
1220
  "mac",
1221
  "markup5ever 0.11.0",
1222
- "proc-macro2 1.0.63",
1223
  "quote 1.0.29",
1224
  "syn 1.0.109",
1225
  ]
@@ -1832,9 +1832,9 @@ version = "0.1.1"
1832
  source = "registry+https://github.com/rust-lang/crates.io-index"
1833
  checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
1834
  dependencies = [
1835
- "proc-macro2 1.0.63",
1836
  "quote 1.0.29",
1837
- "syn 2.0.23",
1838
  ]
1839
 
1840
  [[package]]
@@ -1950,9 +1950,9 @@ checksum = "b3e8cba4ec22bada7fc55ffe51e2deb6a0e0db2d0b7ab0b103acc80d2510c190"
1950
  dependencies = [
1951
  "pest",
1952
  "pest_meta",
1953
- "proc-macro2 1.0.63",
1954
  "quote 1.0.29",
1955
- "syn 2.0.23",
1956
  ]
1957
 
1958
  [[package]]
@@ -2052,9 +2052,9 @@ checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b"
2052
  dependencies = [
2053
  "phf_generator 0.11.2",
2054
  "phf_shared 0.11.2",
2055
- "proc-macro2 1.0.63",
2056
  "quote 1.0.29",
2057
- "syn 2.0.23",
2058
  ]
2059
 
2060
  [[package]]
@@ -2153,9 +2153,9 @@ dependencies = [
2153
 
2154
  [[package]]
2155
  name = "proc-macro2"
2156
- version = "1.0.63"
2157
  source = "registry+https://github.com/rust-lang/crates.io-index"
2158
- checksum = "7b368fba921b0dce7e60f5e04ec15e565b3303972b42bcfde1d0713b881959eb"
2159
  dependencies = [
2160
  "unicode-ident",
2161
  ]
@@ -2185,7 +2185,7 @@ version = "1.0.29"
2185
  source = "registry+https://github.com/rust-lang/crates.io-index"
2186
  checksum = "573015e8ab27661678357f27dc26460738fd2b6c86e46f386fde94cb5d913105"
2187
  dependencies = [
2188
- "proc-macro2 1.0.63",
2189
  ]
2190
 
2191
  [[package]]
@@ -2693,22 +2693,22 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
2693
 
2694
  [[package]]
2695
  name = "serde"
2696
- version = "1.0.168"
2697
  source = "registry+https://github.com/rust-lang/crates.io-index"
2698
- checksum = "d614f89548720367ded108b3c843be93f3a341e22d5674ca0dd5cd57f34926af"
2699
  dependencies = [
2700
  "serde_derive",
2701
  ]
2702
 
2703
  [[package]]
2704
  name = "serde_derive"
2705
- version = "1.0.168"
2706
  source = "registry+https://github.com/rust-lang/crates.io-index"
2707
- checksum = "d4fe589678c688e44177da4f27152ee2d190757271dc7f1d5b6b9f68d869d641"
2708
  dependencies = [
2709
- "proc-macro2 1.0.63",
2710
  "quote 1.0.29",
2711
- "syn 2.0.23",
2712
  ]
2713
 
2714
  [[package]]
@@ -2890,7 +2890,7 @@ checksum = "f0f45ed1b65bf9a4bf2f7b7dc59212d1926e9eaf00fa998988e420fd124467c6"
2890
  dependencies = [
2891
  "phf_generator 0.7.24",
2892
  "phf_shared 0.7.24",
2893
- "proc-macro2 1.0.63",
2894
  "quote 1.0.29",
2895
  "string_cache_shared",
2896
  ]
@@ -2903,7 +2903,7 @@ checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988"
2903
  dependencies = [
2904
  "phf_generator 0.10.0",
2905
  "phf_shared 0.10.0",
2906
- "proc-macro2 1.0.63",
2907
  "quote 1.0.29",
2908
  ]
2909
 
@@ -2930,18 +2930,18 @@ version = "1.0.109"
2930
  source = "registry+https://github.com/rust-lang/crates.io-index"
2931
  checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
2932
  dependencies = [
2933
- "proc-macro2 1.0.63",
2934
  "quote 1.0.29",
2935
  "unicode-ident",
2936
  ]
2937
 
2938
  [[package]]
2939
  name = "syn"
2940
- version = "2.0.23"
2941
  source = "registry+https://github.com/rust-lang/crates.io-index"
2942
- checksum = "59fb7d6d8281a51045d62b8eb3a7d1ce347b76f312af50cd3dc0af39c87c1737"
2943
  dependencies = [
2944
- "proc-macro2 1.0.63",
2945
  "quote 1.0.29",
2946
  "unicode-ident",
2947
  ]
@@ -2952,7 +2952,7 @@ version = "0.12.6"
2952
  source = "registry+https://github.com/rust-lang/crates.io-index"
2953
  checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f"
2954
  dependencies = [
2955
- "proc-macro2 1.0.63",
2956
  "quote 1.0.29",
2957
  "syn 1.0.109",
2958
  "unicode-xid 0.2.4",
@@ -3007,9 +3007,9 @@ version = "1.0.43"
3007
  source = "registry+https://github.com/rust-lang/crates.io-index"
3008
  checksum = "463fe12d7993d3b327787537ce8dd4dfa058de32fc2b195ef3cde03dc4771e8f"
3009
  dependencies = [
3010
- "proc-macro2 1.0.63",
3011
  "quote 1.0.29",
3012
- "syn 2.0.23",
3013
  ]
3014
 
3015
  [[package]]
@@ -3025,9 +3025,9 @@ dependencies = [
3025
 
3026
  [[package]]
3027
  name = "time"
3028
- version = "0.3.22"
3029
  source = "registry+https://github.com/rust-lang/crates.io-index"
3030
- checksum = "ea9e1b3cf1243ae005d9e74085d4d542f3125458f3a81af210d901dcd7411efd"
3031
  dependencies = [
3032
  "itoa 1.0.8",
3033
  "serde",
@@ -3043,9 +3043,9 @@ checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb"
3043
 
3044
  [[package]]
3045
  name = "time-macros"
3046
- version = "0.2.9"
3047
  source = "registry+https://github.com/rust-lang/crates.io-index"
3048
- checksum = "372950940a5f07bf38dbe211d7283c9e6d7327df53794992d293e534c733d09b"
3049
  dependencies = [
3050
  "time-core",
3051
  ]
@@ -3162,9 +3162,9 @@ version = "2.1.0"
3162
  source = "registry+https://github.com/rust-lang/crates.io-index"
3163
  checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e"
3164
  dependencies = [
3165
- "proc-macro2 1.0.63",
3166
  "quote 1.0.29",
3167
- "syn 2.0.23",
3168
  ]
3169
 
3170
  [[package]]
@@ -3484,9 +3484,9 @@ dependencies = [
3484
  "bumpalo",
3485
  "log",
3486
  "once_cell",
3487
- "proc-macro2 1.0.63",
3488
  "quote 1.0.29",
3489
- "syn 2.0.23",
3490
  "wasm-bindgen-shared",
3491
  ]
3492
 
@@ -3518,9 +3518,9 @@ version = "0.2.87"
3518
  source = "registry+https://github.com/rust-lang/crates.io-index"
3519
  checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
3520
  dependencies = [
3521
- "proc-macro2 1.0.63",
3522
  "quote 1.0.29",
3523
- "syn 2.0.23",
3524
  "wasm-bindgen-backend",
3525
  "wasm-bindgen-shared",
3526
  ]
@@ -3543,7 +3543,7 @@ dependencies = [
3543
 
3544
  [[package]]
3545
  name = "websurfx"
3546
- version = "0.13.16"
3547
  dependencies = [
3548
  "actix-files",
3549
  "actix-web",
 
190
  "serde_urlencoded 0.7.1",
191
  "smallvec 1.11.0",
192
  "socket2",
193
+ "time 0.3.23",
194
  "url 2.4.0",
195
  ]
196
 
 
201
  checksum = "2262160a7ae29e3415554a3f1fc04c764b1540c116aa524683208078b7a75bc9"
202
  dependencies = [
203
  "actix-router",
204
+ "proc-macro2 1.0.64",
205
  "quote 1.0.29",
206
  "syn 1.0.109",
207
  ]
 
571
  checksum = "e859cd57d0710d9e06c381b550c06e76992472a8c6d527aecd2fc673dcc231fb"
572
  dependencies = [
573
  "percent-encoding 2.3.0",
574
+ "time 0.3.23",
575
  "version_check",
576
  ]
577
 
 
784
  checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
785
  dependencies = [
786
  "quote 1.0.29",
787
+ "syn 2.0.25",
788
  ]
789
 
790
  [[package]]
 
794
  checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321"
795
  dependencies = [
796
  "convert_case",
797
+ "proc-macro2 1.0.64",
798
  "quote 1.0.29",
799
  "rustc_version 0.4.0",
800
  "syn 1.0.109",
 
922
  source = "registry+https://github.com/rust-lang/crates.io-index"
923
  checksum = "aa4da3c766cd7a0db8242e326e9e4e081edd567072893ed320008189715366a4"
924
  dependencies = [
925
+ "proc-macro2 1.0.64",
926
  "quote 1.0.29",
927
  "syn 1.0.109",
928
  "synstructure",
 
1219
  "log",
1220
  "mac",
1221
  "markup5ever 0.11.0",
1222
+ "proc-macro2 1.0.64",
1223
  "quote 1.0.29",
1224
  "syn 1.0.109",
1225
  ]
 
1832
  source = "registry+https://github.com/rust-lang/crates.io-index"
1833
  checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
1834
  dependencies = [
1835
+ "proc-macro2 1.0.64",
1836
  "quote 1.0.29",
1837
+ "syn 2.0.25",
1838
  ]
1839
 
1840
  [[package]]
 
1950
  dependencies = [
1951
  "pest",
1952
  "pest_meta",
1953
+ "proc-macro2 1.0.64",
1954
  "quote 1.0.29",
1955
+ "syn 2.0.25",
1956
  ]
1957
 
1958
  [[package]]
 
2052
  dependencies = [
2053
  "phf_generator 0.11.2",
2054
  "phf_shared 0.11.2",
2055
+ "proc-macro2 1.0.64",
2056
  "quote 1.0.29",
2057
+ "syn 2.0.25",
2058
  ]
2059
 
2060
  [[package]]
 
2153
 
2154
  [[package]]
2155
  name = "proc-macro2"
2156
+ version = "1.0.64"
2157
  source = "registry+https://github.com/rust-lang/crates.io-index"
2158
+ checksum = "78803b62cbf1f46fde80d7c0e803111524b9877184cfe7c3033659490ac7a7da"
2159
  dependencies = [
2160
  "unicode-ident",
2161
  ]
 
2185
  source = "registry+https://github.com/rust-lang/crates.io-index"
2186
  checksum = "573015e8ab27661678357f27dc26460738fd2b6c86e46f386fde94cb5d913105"
2187
  dependencies = [
2188
+ "proc-macro2 1.0.64",
2189
  ]
2190
 
2191
  [[package]]
 
2693
 
2694
  [[package]]
2695
  name = "serde"
2696
+ version = "1.0.171"
2697
  source = "registry+https://github.com/rust-lang/crates.io-index"
2698
+ checksum = "30e27d1e4fd7659406c492fd6cfaf2066ba8773de45ca75e855590f856dc34a9"
2699
  dependencies = [
2700
  "serde_derive",
2701
  ]
2702
 
2703
  [[package]]
2704
  name = "serde_derive"
2705
+ version = "1.0.171"
2706
  source = "registry+https://github.com/rust-lang/crates.io-index"
2707
+ checksum = "389894603bd18c46fa56231694f8d827779c0951a667087194cf9de94ed24682"
2708
  dependencies = [
2709
+ "proc-macro2 1.0.64",
2710
  "quote 1.0.29",
2711
+ "syn 2.0.25",
2712
  ]
2713
 
2714
  [[package]]
 
2890
  dependencies = [
2891
  "phf_generator 0.7.24",
2892
  "phf_shared 0.7.24",
2893
+ "proc-macro2 1.0.64",
2894
  "quote 1.0.29",
2895
  "string_cache_shared",
2896
  ]
 
2903
  dependencies = [
2904
  "phf_generator 0.10.0",
2905
  "phf_shared 0.10.0",
2906
+ "proc-macro2 1.0.64",
2907
  "quote 1.0.29",
2908
  ]
2909
 
 
2930
  source = "registry+https://github.com/rust-lang/crates.io-index"
2931
  checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
2932
  dependencies = [
2933
+ "proc-macro2 1.0.64",
2934
  "quote 1.0.29",
2935
  "unicode-ident",
2936
  ]
2937
 
2938
  [[package]]
2939
  name = "syn"
2940
+ version = "2.0.25"
2941
  source = "registry+https://github.com/rust-lang/crates.io-index"
2942
+ checksum = "15e3fc8c0c74267e2df136e5e5fb656a464158aa57624053375eb9c8c6e25ae2"
2943
  dependencies = [
2944
+ "proc-macro2 1.0.64",
2945
  "quote 1.0.29",
2946
  "unicode-ident",
2947
  ]
 
2952
  source = "registry+https://github.com/rust-lang/crates.io-index"
2953
  checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f"
2954
  dependencies = [
2955
+ "proc-macro2 1.0.64",
2956
  "quote 1.0.29",
2957
  "syn 1.0.109",
2958
  "unicode-xid 0.2.4",
 
3007
  source = "registry+https://github.com/rust-lang/crates.io-index"
3008
  checksum = "463fe12d7993d3b327787537ce8dd4dfa058de32fc2b195ef3cde03dc4771e8f"
3009
  dependencies = [
3010
+ "proc-macro2 1.0.64",
3011
  "quote 1.0.29",
3012
+ "syn 2.0.25",
3013
  ]
3014
 
3015
  [[package]]
 
3025
 
3026
  [[package]]
3027
  name = "time"
3028
+ version = "0.3.23"
3029
  source = "registry+https://github.com/rust-lang/crates.io-index"
3030
+ checksum = "59e399c068f43a5d116fedaf73b203fa4f9c519f17e2b34f63221d3792f81446"
3031
  dependencies = [
3032
  "itoa 1.0.8",
3033
  "serde",
 
3043
 
3044
  [[package]]
3045
  name = "time-macros"
3046
+ version = "0.2.10"
3047
  source = "registry+https://github.com/rust-lang/crates.io-index"
3048
+ checksum = "96ba15a897f3c86766b757e5ac7221554c6750054d74d5b28844fce5fb36a6c4"
3049
  dependencies = [
3050
  "time-core",
3051
  ]
 
3162
  source = "registry+https://github.com/rust-lang/crates.io-index"
3163
  checksum = "630bdcf245f78637c13ec01ffae6187cca34625e8c63150d424b59e55af2675e"
3164
  dependencies = [
3165
+ "proc-macro2 1.0.64",
3166
  "quote 1.0.29",
3167
+ "syn 2.0.25",
3168
  ]
3169
 
3170
  [[package]]
 
3484
  "bumpalo",
3485
  "log",
3486
  "once_cell",
3487
+ "proc-macro2 1.0.64",
3488
  "quote 1.0.29",
3489
+ "syn 2.0.25",
3490
  "wasm-bindgen-shared",
3491
  ]
3492
 
 
3518
  source = "registry+https://github.com/rust-lang/crates.io-index"
3519
  checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
3520
  dependencies = [
3521
+ "proc-macro2 1.0.64",
3522
  "quote 1.0.29",
3523
+ "syn 2.0.25",
3524
  "wasm-bindgen-backend",
3525
  "wasm-bindgen-shared",
3526
  ]
 
3543
 
3544
  [[package]]
3545
  name = "websurfx"
3546
+ version = "0.13.17"
3547
  dependencies = [
3548
  "actix-files",
3549
  "actix-web",
Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
  [package]
2
  name = "websurfx"
3
- version = "0.13.16"
4
  edition = "2021"
5
  description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind."
6
  repository = "https://github.com/neon-mmd/websurfx"
 
1
  [package]
2
  name = "websurfx"
3
+ version = "0.13.17"
4
  edition = "2021"
5
  description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind."
6
  repository = "https://github.com/neon-mmd/websurfx"
Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM rust:latest AS chef
3
  # it will be cached from the second build onwards
4
  RUN cargo install cargo-chef
5
 
6
- WORKDIR app
7
 
8
  FROM chef AS planner
9
  COPY . .
@@ -20,7 +20,7 @@ RUN cargo install --path .
20
 
21
  # We do not need the Rust toolchain to run the binary!
22
  FROM gcr.io/distroless/cc-debian11
23
- COPY --from=builder ./public/ ./public/
24
- COPY --from=builder ./websurfx/ ./websurfx/
25
  COPY --from=builder /usr/local/cargo/bin/* /usr/local/bin/
26
  CMD ["websurfx"]
 
3
  # it will be cached from the second build onwards
4
  RUN cargo install cargo-chef
5
 
6
+ WORKDIR /app
7
 
8
  FROM chef AS planner
9
  COPY . .
 
20
 
21
  # We do not need the Rust toolchain to run the binary!
22
  FROM gcr.io/distroless/cc-debian11
23
+ COPY --from=builder /app/public/ /opt/websurfx/public/
24
+ COPY --from=builder /app/websurfx/config.lua /etc/xdg/websurfx/config.lua
25
  COPY --from=builder /usr/local/cargo/bin/* /usr/local/bin/
26
  CMD ["websurfx"]