reduce run and delete apt list
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-04-15 21:56:47 +02:00
parent d8b393715e
commit 31cb918be9
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -9,8 +9,9 @@ RUN cargo install --path .
FROM debian:bullseye-slim
RUN apt-get update
RUN apt-get install -y ca-certificates
RUN apt-get update && apt-get install -y \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /app
WORKDIR /app
@ -21,7 +22,7 @@ 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
RUN mkdir /app/config \
&& touch /app/config/config.toml
CMD [ "./ewp" ]