mylloon.fr/Dockerfile
Mylloon eea84bf03d
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
copy templates
2023-04-09 19:38:30 +02:00

22 lines
463 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
COPY --from=builder /usr/src/ewp/templates /app/templates
RUN mkdir /app/config
RUN touch /app/config/config.toml
CMD [ "./ewp" ]