mylloon.fr/Dockerfile
Mylloon 462370b1d8
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
ci/woodpecker/pr/publish Pipeline is pending
copy dist
2023-04-09 18:03:53 +02:00

23 lines
471 B
Docker

# syntax=docker/dockerfile:1
FROM rust:1.67 AS builder
WORKDIR /usr/src/ewp
COPY . .
RUN cargo install --path .
RUN ewp --no-http
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/dist /app/dist
RUN mkdir /app/config
RUN touch /app/config/config.toml
CMD [ "./ewp" ]