change workdir to /protonmail/ and add creating of /root/.gnupg and change permissions
Build and Push Docker Container / build-and-push (push) Successful in 6m32s

This commit is contained in:
GitHub Actions
2026-03-11 07:22:31 +01:00
parent 2c262c0d0e
commit c6744bbfaf
+3 -1
View File
@@ -23,6 +23,8 @@ LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
EXPOSE 1025/tcp EXPOSE 1025/tcp
EXPOSE 1143/tcp EXPOSE 1143/tcp
RUN mkdir -p /root/.gnupg && chmod 700 /root/.gnupg
# Install dependencies and protonmail bridge # Install dependencies and protonmail bridge
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
@@ -32,9 +34,9 @@ RUN apt-get update \
# Copy bash scripts # Copy bash scripts
COPY gpgparams entrypoint.sh /protonmail/ COPY gpgparams entrypoint.sh /protonmail/
WORKDIR /protonmail/
# Copy protonmail # Copy protonmail
WORKDIR /usr/bin/
COPY --from=build /build/proton-bridge/bridge /usr/bin/ COPY --from=build /build/proton-bridge/bridge /usr/bin/
COPY --from=build /build/proton-bridge/proton-bridge /usr/bin/ COPY --from=build /build/proton-bridge/proton-bridge /usr/bin/
COPY --from=build /build/proton-bridge/vault-editor /usr/bin/ COPY --from=build /build/proton-bridge/vault-editor /usr/bin/