mylloon.fr/Dockerfile

24 lines
471 B
Text
Raw Normal View History

2023-02-16 20:06:07 +01:00
# syntax=docker/dockerfile:1
FROM rust:1.67 AS builder
WORKDIR /usr/src/ewp
COPY . .
RUN cargo install --path .
2023-04-09 18:03:53 +02:00
RUN ewp --no-http
2023-02-16 20:06:07 +01:00
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
2023-04-09 18:03:53 +02:00
COPY --from=builder /usr/src/ewp/dist /app/dist
2023-02-16 20:06:07 +01:00
2023-02-16 22:09:57 +01:00
RUN mkdir /app/config
2023-02-16 22:04:53 +01:00
RUN touch /app/config/config.toml
2023-02-16 20:06:07 +01:00
CMD [ "./ewp" ]