remove not used deb folder
Build and Push Docker Container / build-and-push (push) Successful in 6m15s
Build and Push Docker Container / build-and-push (push) Successful in 6m15s
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
### The Deb install is just a repack of the official ProtonMail Bridge deb package with less dependencies.
|
|
||||||
### I recommend you don't use this. It's here for legacy reasons.
|
|
||||||
|
|
||||||
FROM debian:sid-slim AS build
|
|
||||||
|
|
||||||
COPY install.sh PACKAGE /
|
|
||||||
RUN apt-get update && apt-get install -y wget binutils
|
|
||||||
|
|
||||||
# Repack deb (removes unnecessary dependencies and produces /protonmail.deb)
|
|
||||||
RUN bash /install.sh
|
|
||||||
|
|
||||||
FROM debian:sid-slim
|
|
||||||
LABEL maintainer="Simon Felding <sife@adm.ku.dk>"
|
|
||||||
|
|
||||||
EXPOSE 25/tcp
|
|
||||||
EXPOSE 143/tcp
|
|
||||||
|
|
||||||
WORKDIR /protonmail
|
|
||||||
|
|
||||||
# Copy bash scripts
|
|
||||||
COPY gpgparams entrypoint.sh PACKAGE /protonmail/
|
|
||||||
COPY --from=build /protonmail.deb /tmp/protonmail.deb
|
|
||||||
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y --no-install-recommends /tmp/protonmail.deb socat pass libsecret-1-0 ca-certificates procps \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
CMD ["bash", "/protonmail/entrypoint.sh"]
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
https://github.com/ProtonMail/proton-bridge/releases/download/v3.21.2/protonmail-bridge_3.21.2-1_amd64.deb
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
# Initialize
|
|
||||||
if [[ $1 == init ]]; then
|
|
||||||
|
|
||||||
# # Parse parameters
|
|
||||||
# TFP="" # Default empty two factor passcode
|
|
||||||
# shift # skip `init`
|
|
||||||
# while [[ $# -gt 0 ]]; do
|
|
||||||
# key="$1"
|
|
||||||
# case $key in
|
|
||||||
# -u|--username)
|
|
||||||
# USERNAME="$2"
|
|
||||||
# ;;
|
|
||||||
# -p|--password)
|
|
||||||
# PASSWORD="$2"
|
|
||||||
# ;;
|
|
||||||
# -t|--twofactor)
|
|
||||||
# TWOFACTOR="$2"
|
|
||||||
# ;;
|
|
||||||
# esac
|
|
||||||
# shift
|
|
||||||
# shift
|
|
||||||
# done
|
|
||||||
|
|
||||||
# Initialize pass
|
|
||||||
gpg --generate-key --batch /protonmail/gpgparams
|
|
||||||
pass init pass-key
|
|
||||||
|
|
||||||
# Login
|
|
||||||
protonmail-bridge --cli
|
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
# socat will make the conn appear to come from 127.0.0.1
|
|
||||||
# ProtonMail Bridge currently expects that.
|
|
||||||
# It also allows us to bind to the real ports :)
|
|
||||||
socat TCP-LISTEN:25,fork TCP:127.0.0.1:1025 &
|
|
||||||
socat TCP-LISTEN:143,fork TCP:127.0.0.1:1143 &
|
|
||||||
|
|
||||||
# Start protonmail
|
|
||||||
# Fake a terminal, so it does not quit because of EOF...
|
|
||||||
rm -f faketty
|
|
||||||
mkfifo faketty
|
|
||||||
cat faketty | protonmail-bridge --cli
|
|
||||||
|
|
||||||
fi
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
%no-protection
|
|
||||||
%echo Generating a basic OpenPGP key
|
|
||||||
Key-Type: RSA
|
|
||||||
Key-Length: 2048
|
|
||||||
Name-Real: pass-key
|
|
||||||
Expire-Date: 0
|
|
||||||
%commit
|
|
||||||
%echo done
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
# Repack deb (remove unnecessary dependencies)
|
|
||||||
mkdir deb
|
|
||||||
wget -i /PACKAGE -O /deb/protonmail.deb
|
|
||||||
cd deb
|
|
||||||
ar x -v protonmail.deb
|
|
||||||
mkdir control
|
|
||||||
tar zxvf control.tar.gz -C control
|
|
||||||
sed -i "s/^Depends: .*$/Depends: libgl1, libc6, libsecret-1-0, libstdc++6, libgcc1/" control/control
|
|
||||||
cd control
|
|
||||||
tar zcvf ../control.tar.gz .
|
|
||||||
cd ../
|
|
||||||
|
|
||||||
ar rcs -v /protonmail.deb debian-binary control.tar.gz data.tar.gz
|
|
||||||
Reference in New Issue
Block a user