[decomposed] use Alpine for opencloud starting (#1547)

* use Alpine for opencloud starting

* Update opencloud.Dockerfile

* fix
This commit is contained in:
Viktor Scharf
2025-09-24 14:31:05 +02:00
committed by GitHub
parent 5023642885
commit 5751d1e2a0
2 changed files with 3 additions and 19 deletions
@@ -1,10 +1,7 @@
services:
opencloud-server:
build:
dockerfile: opencloud.Dockerfile
context: ./
args:
OC_IMAGE_TAG: $OC_IMAGE_TAG
image: opencloudeu/opencloud:dev
entrypoint: [ "/bin/sh", "/usr/bin/serve-opencloud.sh" ]
user: root
environment:
WITH_WRAPPER: $WITH_WRAPPER
@@ -61,3 +58,4 @@ services:
volumes:
- ../../../config:/woodpecker/src/github.com/opencloud-eu/opencloud/tests/config
- ../../../ocwrapper/bin/ocwrapper:/usr/bin/ocwrapper
- ./serve-opencloud.sh:/usr/bin/serve-opencloud.sh
@@ -1,14 +0,0 @@
# custom Dockerfile required to run ocwrapper command
# mounting 'ocwrapper' binary doesn't work with image 'amd64/alpine:3.17' (busybox based)
ARG OC_IMAGE_TAG
FROM opencloudeu/opencloud:${OC_IMAGE_TAG} AS opencloud
FROM ubuntu:22.04
COPY --from=opencloud /usr/bin/opencloud /usr/bin/opencloud
RUN apt-get update && apt-get install -y inotify-tools
COPY ["./serve-opencloud.sh", "/usr/bin/serve-opencloud"]
RUN chmod +x /usr/bin/serve-opencloud
ENTRYPOINT [ "serve-opencloud" ]