mylloon.fr/Dockerfile
Mylloon 5f3c8ed68c
Some checks failed
ci/woodpecker/push/publish Pipeline failed
volume support
2023-02-16 22:04:53 +01:00

20 lines
383 B
Docker

# 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
RUN touch /app/config/config.toml
CMD [ "./ewp" ]