Compare commits
No commits in common. "30c93de13ea4ae593e1b1ef02e3bfe3163bf21f8" and "89cff04248bab3d470d9c6b214a74651b2f47382" have entirely different histories.
30c93de13e
...
89cff04248
2 changed files with 7 additions and 16 deletions
19
Dockerfile
19
Dockerfile
|
|
@ -2,7 +2,6 @@
|
||||||
FROM golang:1.14-alpine as build
|
FROM golang:1.14-alpine as build
|
||||||
ENV LANG C.UTF-8
|
ENV LANG C.UTF-8
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
curl \
|
|
||||||
gcc \
|
gcc \
|
||||||
git \
|
git \
|
||||||
libsecret-dev \
|
libsecret-dev \
|
||||||
|
|
@ -10,19 +9,11 @@ RUN apk add --no-cache \
|
||||||
musl-dev
|
musl-dev
|
||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
|
|
||||||
ARG RELEASE
|
|
||||||
ARG TAG
|
ARG TAG
|
||||||
RUN if [ -n "$RELEASE" ]; then \
|
RUN git clone https://github.com/ProtonMail/proton-bridge.git proton-bridge \
|
||||||
echo "Using release $RELEASE..." \
|
&& cd proton-bridge \
|
||||||
&& curl -L -s "https://github.com/ProtonMail/proton-bridge/archive/$RELEASE.tar.gz" | tar zx \
|
&& if [ -n "$TAG" ]; then echo "Using tags/$TAG..."; git checkout tags/$TAG; fi \
|
||||||
&& ln -s "proton-bridge-$RELEASE" proton-bridge \
|
&& make build-nogui
|
||||||
&& cd proton-bridge \
|
|
||||||
; else \
|
|
||||||
git clone https://github.com/ProtonMail/proton-bridge.git proton-bridge \
|
|
||||||
&& cd proton-bridge \
|
|
||||||
&& if [ -n "$TAG" ]; then echo "Using tags/$TAG..."; git checkout tags/$TAG; fi \
|
|
||||||
; fi \
|
|
||||||
&& make build-nogui
|
|
||||||
|
|
||||||
# Create a container for the ProtonMail Bridge.
|
# Create a container for the ProtonMail Bridge.
|
||||||
FROM alpine:edge
|
FROM alpine:edge
|
||||||
|
|
@ -31,7 +22,7 @@ ENV LANG C.UTF-8
|
||||||
EXPOSE 25/tcp
|
EXPOSE 25/tcp
|
||||||
EXPOSE 143/tcp
|
EXPOSE 143/tcp
|
||||||
|
|
||||||
COPY --from=build /usr/src/proton-bridge/proton-bridge /bin/proton-bridge
|
COPY --from=build /usr/src/proton-bridge/Desktop-Bridge /bin/protonmail-bridge
|
||||||
COPY entrypoint /bin/
|
COPY entrypoint /bin/
|
||||||
COPY initproton /bin/
|
COPY initproton /bin/
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eufo pipefail
|
set -eufo pipefail
|
||||||
|
|
||||||
BRIDGE=/bin/proton-bridge
|
BRIDGE=/bin/protonmail-bridge
|
||||||
FIFO=/tmp/fifo
|
FIFO=/tmp/fifo
|
||||||
PRINT_INFO=${PRINT_INFO:-""}
|
PRINT_INFO=${PRINT_INFO:-""}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue