mylloon.fr/Dockerfile

29 lines
632 B
Text
Raw Permalink Normal View History

2023-02-16 20:06:07 +01:00
# syntax=docker/dockerfile:1
2023-04-12 07:00:55 +02:00
FROM rust:bullseye AS builder
2023-02-16 20:06:07 +01:00
WORKDIR /usr/src/ewp
COPY . .
RUN cargo install --path .
FROM debian:bullseye-slim
2023-04-12 07:01:02 +02:00
2023-04-15 21:56:47 +02:00
RUN apt-get update && apt-get install -y \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
2023-04-12 07:01:02 +02:00
2023-02-16 20:06:07 +01:00
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/README.md /app/README.md
2023-02-16 20:06:07 +01:00
COPY --from=builder /usr/src/ewp/static /app/static
2023-04-09 19:38:30 +02:00
COPY --from=builder /usr/src/ewp/templates /app/templates
2023-02-16 20:06:07 +01:00
2023-04-15 21:56:47 +02:00
RUN mkdir /app/config \
&& touch /app/config/config.toml
2023-02-16 22:04:53 +01:00
2023-02-16 20:06:07 +01:00
CMD [ "./ewp" ]