Improve build

This commit is contained in:
Xiaonan Shen
2020-05-31 21:16:31 -07:00
parent f50fb12487
commit b8296a70d6
8 changed files with 50 additions and 76 deletions

View File

@@ -4,10 +4,12 @@ LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
EXPOSE 25/tcp
EXPOSE 143/tcp
WORKDIR /protonmail
# Copy bash scripts
COPY gpgparams install.sh entrypoint.sh releaserc /protonmail/
COPY gpgparams install.sh entrypoint.sh VERSION /protonmail/
# Install dependencies and protonmail bridge
RUN bash /protonmail/install.sh
RUN bash install.sh
ENTRYPOINT ["bash", "/protonmail/entrypoint.sh"]