reduce run and delete apt list
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
This commit is contained in:
parent
d8b393715e
commit
31cb918be9
1 changed files with 5 additions and 4 deletions
|
@ -9,8 +9,9 @@ RUN cargo install --path .
|
||||||
|
|
||||||
FROM debian:bullseye-slim
|
FROM debian:bullseye-slim
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update && apt-get install -y \
|
||||||
RUN apt-get install -y ca-certificates
|
ca-certificates \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
WORKDIR /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/templates /app/templates
|
||||||
COPY --from=builder /usr/src/ewp/data /app/data
|
COPY --from=builder /usr/src/ewp/data /app/data
|
||||||
|
|
||||||
RUN mkdir /app/config
|
RUN mkdir /app/config \
|
||||||
RUN touch /app/config/config.toml
|
&& touch /app/config/config.toml
|
||||||
|
|
||||||
CMD [ "./ewp" ]
|
CMD [ "./ewp" ]
|
||||||
|
|
Loading…
Reference in a new issue