ci: add dockerfile and edit docker compose
plus some optimizations
This commit is contained in:
parent
f7e861bc44
commit
84de4b07a2
@ -3,6 +3,12 @@ name = "refinement"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
panic = 'abort'
|
||||
|
||||
[dependencies]
|
||||
rocket = "0.5.1"
|
||||
rust-embed = "8.5.0"
|
||||
|
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM rustlang/rust:nightly-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN cargo build --release --bin refinement
|
||||
|
||||
CMD ["target/release/refinement"]
|
@ -1,8 +1,8 @@
|
||||
services:
|
||||
web:
|
||||
image: darkhttpd
|
||||
web-server:
|
||||
image: refinement
|
||||
ports:
|
||||
- "28080:80"
|
||||
volumes:
|
||||
- ./dev/:/var/www/htdocs:ro
|
||||
- "8880:8000"
|
||||
environment:
|
||||
ROCKET_ADDRESS: 0.0.0.0
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user