Consolidated run commands.
This commit is contained in:
parent
3fa10c39a4
commit
17dce093f4
1 changed files with 11 additions and 7 deletions
18
Dockerfile
18
Dockerfile
|
|
@ -18,18 +18,22 @@ RUN git clone https://github.com/ProtonMail/proton-bridge.git proton-bridge \
|
|||
# Create a container for the ProtonMail Bridge.
|
||||
FROM alpine:edge
|
||||
ENV LANG C.UTF-8
|
||||
|
||||
EXPOSE 25/tcp
|
||||
EXPOSE 143/tcp
|
||||
|
||||
COPY --from=build /usr/src/proton-bridge/Desktop-Bridge /bin/protonmail-bridge
|
||||
COPY entrypoint /bin/
|
||||
COPY initproton /bin/
|
||||
RUN apk add --no-cache \
|
||||
libsecret \
|
||||
pass \
|
||||
socat \
|
||||
su-exec
|
||||
COPY entrypoint /bin/
|
||||
RUN chmod +x /bin/entrypoint
|
||||
COPY initproton /bin/
|
||||
RUN chmod +x /bin/initproton
|
||||
su-exec \
|
||||
&& chmod +x /bin/entrypoint \
|
||||
&& chmod +x /bin/initproton
|
||||
|
||||
WORKDIR /var/lib/proton
|
||||
EXPOSE 25/tcp
|
||||
EXPOSE 143/tcp
|
||||
|
||||
ENTRYPOINT ["/bin/entrypoint"]
|
||||
CMD ["/bin/initproton"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue