fix: correct docker environment variable name and remove unnecessary runtime deps
This commit is contained in:
parent
3a6bcbd94d
commit
be49d9d674
2 changed files with 1 additions and 7 deletions
|
|
@ -17,7 +17,7 @@ services:
|
||||||
- SERVER_PORT=8000
|
- SERVER_PORT=8000
|
||||||
- SERVER_HOST=0.0.0.0
|
- SERVER_HOST=0.0.0.0
|
||||||
- MONGODB_URI=mongodb://mongodb:27017
|
- MONGODB_URI=mongodb://mongodb:27017
|
||||||
- MONGODB_DATABASE=normogen_dev
|
- DATABASE_NAME=normogen_dev
|
||||||
- JWT_SECRET=dev-jwt-secret-key-minimum-32-chars
|
- JWT_SECRET=dev-jwt-secret-key-minimum-32-chars
|
||||||
- RUST_LOG_STYLE=always
|
- RUST_LOG_STYLE=always
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
||||||
|
|
@ -30,12 +30,6 @@ FROM rust:1.93-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install runtime dependencies
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
pkg-config \
|
|
||||||
libssl-dev \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Copy the binary from builder
|
# Copy the binary from builder
|
||||||
COPY --from=builder /app/target/debug/normogen-backend /app/normogen-backend
|
COPY --from=builder /app/target/debug/normogen-backend /app/normogen-backend
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue