mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-13 00:52:01 -04:00
groupware: fix building the stalwart:cli container
* fix the inline dockerfile for building the stalwart:cli container, cannot be based on scratch since we need a shell and wget, and it should thus retain the alpine container as its base * remove stdin_open and tty from the container attributes, not needed
This commit is contained in:
@@ -57,15 +57,13 @@ services:
|
||||
dockerfile_inline: |
|
||||
FROM alpine:latest AS downloader
|
||||
ARG VERSION
|
||||
RUN apk add --no-cache curl tar xz
|
||||
RUN apk add --no-cache curl tar xz wget
|
||||
RUN arch=$(apk --print-arch) && \
|
||||
mkdir /cli && \
|
||||
curl --proto '=https' --tlsv1.2 -LsSf \
|
||||
https://github.com/stalwartlabs/cli/releases/download/v$${VERSION}/stalwart-cli-$${arch}-unknown-linux-musl.tar.xz \
|
||||
| tar xJf - --strip-components=1 -C /cli
|
||||
|
||||
FROM scratch
|
||||
COPY --from=downloader /cli/stalwart-cli /stalwart-cli
|
||||
RUN mv /cli/stalwart-cli /stalwart-cli && rm -rf /cli/
|
||||
CMD ["/stalwart-cli"]
|
||||
|
||||
networks:
|
||||
@@ -91,8 +89,6 @@ services:
|
||||
touch /var/lib/stalwart/.initialized
|
||||
echo "Successfully initialized"
|
||||
|
||||
stdin_open: true
|
||||
tty: true
|
||||
depends_on:
|
||||
- stalwart
|
||||
|
||||
|
||||
Reference in New Issue
Block a user