Merge pull request #1 from shenxn/master

Update from shenxn/protonmail-bridge-docker
This commit is contained in:
Thibault Godouet 2022-12-03 16:26:24 +00:00 committed by GitHub
commit 298bacbd6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 11 deletions

View file

@ -1,14 +1,15 @@
FROM golang:1.15 AS build
# Use carlosedp/golang for riscv64 support
FROM carlosedp/golang:1.18 AS build
# Install dependencies
RUN apt-get update && apt-get install -y libsecret-1-dev
RUN apt-get update && apt-get install -y git build-essential libsecret-1-dev
# Build
WORKDIR /build/
COPY build.sh VERSION /build/
RUN bash build.sh
FROM ubuntu:bionic
FROM ubuntu:focal
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
EXPOSE 25/tcp
@ -23,6 +24,7 @@ RUN apt-get update \
COPY gpgparams entrypoint.sh /protonmail/
# Copy protonmail
COPY --from=build /build/proton-bridge/bridge /protonmail/
COPY --from=build /build/proton-bridge/proton-bridge /protonmail/
# Add a user 'protonmail' with UID 8535