fix docker not including public dir
This commit is contained in:
parent
0a0a1b2a50
commit
9abd154b99
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ WORKDIR /app
|
||||||
|
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY Cargo.toml Cargo.lock ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
|
COPY public ./public
|
||||||
|
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
|
@ -13,7 +14,9 @@ FROM debian:bookworm-slim
|
||||||
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=builder /app/target/release/timezone-db /usr/local/bin/app
|
COPY --from=builder /app/target/release/timezone-db /usr/local/bin/app
|
||||||
|
COPY --from=builder /app/public ./public
|
||||||
|
|
||||||
ENV RUST_LOG=info
|
ENV RUST_LOG=info
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue