mylloon.fr/Dockerfile
Mylloon f8b9c32e0c
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
install ca-certificates
2023-04-12 07:01:02 +02:00

27 lines
575 B
Docker

# syntax=docker/dockerfile:1
FROM rust:bullseye AS builder
WORKDIR /usr/src/ewp
COPY . .
RUN cargo install --path .
FROM debian:bullseye-slim
RUN apt-get update
RUN apt-get install -y ca-certificates
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
COPY --from=builder /usr/src/ewp/data /app/data
RUN mkdir /app/config
RUN touch /app/config/config.toml
CMD [ "./ewp" ]