Skip to content
Snippets Groups Projects
Unverified Commit 06cbc7c1 authored by Wolfgang Silbermayr's avatar Wolfgang Silbermayr
Browse files

fix(container): move installed executable back to `/opt/smtp-mailer`

Close #126
parent 6b0191b1
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,6 @@ ENV CARGO_HOME=/builds/opentalk/backend/services/smtp-mailer/cargo
RUN cargo auditable build --release --locked --package opentalk-smtp-mailer
FROM debian:bookworm-slim
RUN apt-get update && \
......@@ -22,7 +21,7 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/opentalk-smtp-mailer
WORKDIR /opt/smtp-mailer
COPY --from=builder /builds/opentalk/backend/services/smtp-mailer/target/release/opentalk-smtp-mailer .
COPY ./crates/opentalk-smtp-mailer/resources ./resources
......@@ -31,4 +30,4 @@ ENV USERID=1000
ENV GROUPID=1000
USER $USERID:$GROUPID
CMD ["/opt/opentalk-smtp-mailer/opentalk-smtp-mailer"]
CMD ["/opt/smtp-mailer/opentalk-smtp-mailer"]
......@@ -22,7 +22,7 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/opentalk-smtp-mailer
WORKDIR /opt/smtp-mailer
COPY --from=builder /builds/opentalk/backend/services/smtp-mailer/target/release/opentalk-smtp-mailer .
COPY ./crates/opentalk-smtp-mailer/resources ./resources
......@@ -31,4 +31,4 @@ ENV USERID=1000
ENV GROUPID=1000
USER $USERID:$GROUPID
CMD ["/opt/opentalk-smtp-mailer/opentalk-smtp-mailer"]
CMD ["/opt/smtp-mailer/opentalk-smtp-mailer"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.