change base image from ubuntu to alpine
Build and Push Docker Container / build-and-push (push) Successful in 5m55s
Build and Push Docker Container / build-and-push (push) Successful in 5m55s
This commit is contained in:
+6
-7
@@ -17,8 +17,7 @@ RUN sed -i 's/127.0.0.1/0.0.0.0/g' internal/constants/constants.go
|
|||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
make build-nogui vault-editor
|
make build-nogui vault-editor
|
||||||
|
|
||||||
FROM ubuntu:latest
|
FROM alpine:latest
|
||||||
LABEL maintainer="Xiaonan Shen <s@sxn.dev>"
|
|
||||||
|
|
||||||
EXPOSE 1025/tcp
|
EXPOSE 1025/tcp
|
||||||
EXPOSE 1143/tcp
|
EXPOSE 1143/tcp
|
||||||
@@ -26,11 +25,11 @@ EXPOSE 1143/tcp
|
|||||||
RUN mkdir -p /root/.gnupg && chmod 700 /root/.gnupg
|
RUN mkdir -p /root/.gnupg && chmod 700 /root/.gnupg
|
||||||
|
|
||||||
# Install dependencies and protonmail bridge
|
# Install dependencies and protonmail bridge
|
||||||
RUN apt-get update \
|
RUN apk add --no-cache \
|
||||||
&& apt-get install -y --no-install-recommends \
|
gcompat \
|
||||||
pass libsecret-1-0 ca-certificates libfido2-1 \
|
libsecret \
|
||||||
dbus dbus-x11 gnupg2 \
|
libfido2 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
gnupg pass ca-certificates
|
||||||
|
|
||||||
# Copy bash scripts
|
# Copy bash scripts
|
||||||
COPY gpgparams entrypoint.sh /protonmail/
|
COPY gpgparams entrypoint.sh /protonmail/
|
||||||
|
|||||||
+4
-1
@@ -19,7 +19,10 @@ if [[ $1 == init ]]; then
|
|||||||
proton-bridge --cli $@
|
proton-bridge --cli $@
|
||||||
|
|
||||||
else
|
else
|
||||||
eval "$(dbus-launch --sh-syntax --exit-with-session)"
|
# Change Permission when Folder Exists
|
||||||
|
if [ -d "/root/.gnupg" ]; then
|
||||||
|
chmod 700 /root/.gnupg
|
||||||
|
fi
|
||||||
|
|
||||||
# Start protonmail
|
# Start protonmail
|
||||||
# Fake a terminal, so it does not quit because of EOF...
|
# Fake a terminal, so it does not quit because of EOF...
|
||||||
|
|||||||
Reference in New Issue
Block a user