19 lines
348 B
Text
19 lines
348 B
Text
|
# syntax=docker/dockerfile:1
|
||
|
|
||
|
FROM rust:1.67 AS builder
|
||
|
WORKDIR /usr/src/ewp
|
||
|
COPY . .
|
||
|
|
||
|
RUN cargo install --path .
|
||
|
|
||
|
|
||
|
FROM debian:bullseye-slim
|
||
|
RUN mkdir /app
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY --from=builder /usr/local/cargo/bin/ewp /app/ewp
|
||
|
COPY --from=builder /usr/src/ewp/LICENSE /app/LICENSE
|
||
|
COPY --from=builder /usr/src/ewp/static /app/static
|
||
|
|
||
|
CMD [ "./ewp" ]
|