mirror of
https://github.com/shenxn/protonmail-bridge-docker.git
synced 2025-12-06 08:27:08 +00:00
Merge branch 'master' into support-rootless
This commit is contained in:
commit
3e0cc0ff8d
3
.github/workflows/build.yaml
vendored
3
.github/workflows/build.yaml
vendored
@ -8,10 +8,13 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- .github/workflows/build.yaml
|
- .github/workflows/build.yaml
|
||||||
- build/*
|
- build/*
|
||||||
|
- deb/*
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- .github/workflows/build.yaml
|
- .github/workflows/build.yaml
|
||||||
- build/*
|
- build/*
|
||||||
|
- deb/*
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOCKER_REPO: shenxn/protonmail-bridge
|
DOCKER_REPO: shenxn/protonmail-bridge
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
# The build image could be golang, but it currently does not support riscv64. Only debian:sid does, at the time of writing.
|
||||||
FROM debian:sid-slim AS build
|
FROM debian:sid-slim AS build
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
@ -9,7 +10,7 @@ COPY build.sh VERSION /build/
|
|||||||
RUN bash build.sh
|
RUN bash build.sh
|
||||||
|
|
||||||
FROM debian:sid-slim
|
FROM debian:sid-slim
|
||||||
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
LABEL maintainer="Simon Felding <sife@adm.ku.dk>"
|
||||||
|
|
||||||
# These are only exported if running as root
|
# These are only exported if running as root
|
||||||
EXPOSE 25/tcp
|
EXPOSE 25/tcp
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
3.15.0
|
3.19.0
|
||||||
@ -9,15 +9,5 @@ git clone https://github.com/ProtonMail/proton-bridge.git
|
|||||||
cd proton-bridge
|
cd proton-bridge
|
||||||
git checkout v$VERSION
|
git checkout v$VERSION
|
||||||
|
|
||||||
ARCH=$(uname -m)
|
|
||||||
if [[ $ARCH == "armv7l" ]] ; then
|
|
||||||
# This is expected to fail, and we use the following patch to fix
|
|
||||||
make build-nogui || true
|
|
||||||
# For 32bit architectures, there was a overflow error on the parser
|
|
||||||
# This is a workaround for this problem found at:
|
|
||||||
# https://github.com/antlr/antlr4/issues/2433#issuecomment-774514106
|
|
||||||
find $(go env GOPATH)/pkg/mod/github.com/\!proton\!mail/go-rfc5322*/ -type f -exec sed -i.bak 's/(1<</(int64(1)<</g' {} +
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
make build-nogui vault-editor
|
make build-nogui vault-editor
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:jammy
|
FROM debian:sid-slim
|
||||||
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
||||||
|
|
||||||
# These are only exported if running as root
|
# These are only exported if running as root
|
||||||
@ -13,6 +13,13 @@ WORKDIR /protonmail
|
|||||||
# Copy bash scripts
|
# Copy bash scripts
|
||||||
COPY gpgparams install.sh entrypoint.sh VERSION /protonmail/
|
COPY gpgparams install.sh entrypoint.sh VERSION /protonmail/
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends socat pass procps libsecret-1-0 ca-certificates \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Copy bash scripts
|
||||||
|
COPY gpgparams entrypoint.sh /protonmail/
|
||||||
|
|
||||||
# Install dependencies and protonmail bridge
|
# Install dependencies and protonmail bridge
|
||||||
RUN bash install.sh
|
RUN bash install.sh
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
3.15.0-1
|
3.19.0-1
|
||||||
Loading…
Reference in New Issue
Block a user