diff --git a/build/Dockerfile b/build/Dockerfile index cb29500..036f7f4 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -12,21 +12,20 @@ RUN apt-get update && apt-get install -y \ # Build ADD https://github.com/ProtonMail/proton-bridge.git#${VERSION} /build/ WORKDIR /build/ -RUN make build-nogui vault-editor - -COPY build.sh /build/ -RUN bash build.sh +RUN sed -i 's/127.0.0.1/0.0.0.0/g' internal/constants/constants.go +RUN set -eux; \ + make build-nogui vault-editor FROM ubuntu:latest LABEL maintainer="Xiaonan Shen " -EXPOSE 25/tcp -EXPOSE 143/tcp +EXPOSE 1025/tcp +EXPOSE 1143/tcp # Install dependencies and protonmail bridge RUN apt-get update \ && apt-get install -y --no-install-recommends \ - socat pass libsecret-1-0 ca-certificates libfido2-1 \ + pass libsecret-1-0 ca-certificates libfido2-1 \ dbus dbus-x11 gnupg2 \ && rm -rf /var/lib/apt/lists/* diff --git a/build/build.sh b/build/build.sh deleted file mode 100644 index 98a0341..0000000 --- a/build/build.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -set -ex - -# Clone new code -sed -i 's/127.0.0.1/0.0.0.0/g' internal/constants/constants.go - -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<