update
This commit is contained in:
parent
78ea7dccb9
commit
3d46388478
1 changed files with 7 additions and 2 deletions
|
|
@ -1,10 +1,15 @@
|
|||
FROM rust:latest AS builder
|
||||
FROM rust:1 AS builder
|
||||
WORKDIR /usr/src/website
|
||||
COPY . .
|
||||
RUN cargo install --path .
|
||||
|
||||
FROM debian:trixie-slim
|
||||
RUN apt-get update && rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=builder /usr/local/cargo/bin/website /usr/local/bin/website
|
||||
|
||||
EXPOSE 3000
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:3000/ || exit 1
|
||||
|
||||
CMD ["website"]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue