rm chown and volume
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Dmitry Belyaev 2023-03-28 19:19:27 +03:00
parent 0e45db7f60
commit 891a4bced1
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -16,10 +16,9 @@ RUN cargo build --release
RUN rm -f /home/rust/src/src/main.rs RUN rm -f /home/rust/src/src/main.rs
COPY src /home/rust/src/src COPY src /home/rust/src/src
RUN sudo chown -R rust:rust . && \ RUN touch /home/rust/src/src/main.rs
touch /home/rust/src/src/main.rs
RUN cargo build --release RUN cargo build -v --release
FROM scratch FROM scratch
@ -27,8 +26,6 @@ COPY static /static
COPY templates /templates COPY templates /templates
COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/qchgk_web / COPY --from=builder /home/rust/src/target/x86_64-unknown-linux-musl/release/qchgk_web /
VOLUME /db
EXPOSE 8088/tcp EXPOSE 8088/tcp
ENTRYPOINT ["/qchgk_web"] ENTRYPOINT ["/qchgk_web"]