Add GitHub Actions

This commit is contained in:
Xiaonan Shen
2020-04-15 00:17:01 -07:00
parent 566735cf74
commit f8e83cf877
9 changed files with 96 additions and 47 deletions

View File

@@ -1,18 +1,11 @@
FROM debian:buster-slim AS setup
COPY setup.sh /bin/
RUN bash /bin/setup.sh
FROM debian:buster-slim
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
EXPOSE 25/tcp
EXPOSE 143/tcp
# Copy gpg parameters and .deb installer
COPY gpgparams install.sh entrypoint.sh /protonmail/
COPY --from=setup /protonmail/protonmail.deb /protonmail/
# Copy bash scripts
COPY gpgparams install.sh entrypoint.sh releaserc /protonmail/
# Install dependencies and protonmail bridge
RUN bash /protonmail/install.sh