env and docker fixes
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM rust:latest AS builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN cargo build --release
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/target/release/hotel-api-rs /usr/local/bin/hotel-api-rs
|
||||
|
||||
# Create the directory where DB will be stored
|
||||
RUN mkdir -p /db
|
||||
|
||||
# Expose API port
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["/usr/local/bin/hotel-api-rs"]
|
||||
Reference in New Issue
Block a user