mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-26 18:16:47 -05:00
The thumbnails service now always resizes in pure Go. Deployments that want more formats, webp output or an attention crop run a real imagor and point WEBDAV_THUMBNAILS_GENERATOR_URL at it. The built-in service stays as a minimal fallback that keeps working when imagor or libvips have to be taken out, for example during a security issue. Without cgo dependencies the docker images link statically again and no longer need the vips packages. The vips parity run in CI goes away, the regular test run already covers the pure Go build. The preview fixtures of the acceptance tests were rendered by libvips, so they are regenerated with the pure Go build. Text previews now lose their left edge: the 640x480 text canvas is filled into a square box and the pure Go build crops the centre, where libvips' attention crop kept the left side with the text. part of https://github.com/opencloud-eu/opencloud/issues/3912 Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
49 lines
1.6 KiB
Docker
49 lines
1.6 KiB
Docker
# Please use this Dockerfile only if
|
|
# you want to build an image from source without
|
|
# pnpm and Go installed on your dev machine.
|
|
|
|
# You can build OpenCloud using this Dockerfile
|
|
# by running following command:
|
|
# `docker build -t opencloud/opencloud:custom .`
|
|
|
|
# In most other cases you might want to run the
|
|
# following command instead:
|
|
# `make -C opencloud dev-docker`
|
|
# It will build a `opencloud/opencloud:dev` image for you
|
|
# and use your local pnpm and Go caches and therefore
|
|
# is a lot faster than the build steps below.
|
|
|
|
|
|
FROM quay.io/opencloudeu/nodejs-ci:24 AS generate
|
|
|
|
COPY ./ /opencloud/
|
|
|
|
WORKDIR /opencloud/opencloud
|
|
RUN make node-generate-prod
|
|
|
|
FROM quay.io/opencloudeu/golang-ci:1.26 AS build
|
|
|
|
COPY --from=generate /opencloud /opencloud
|
|
|
|
WORKDIR /opencloud/opencloud
|
|
RUN make go-generate build
|
|
|
|
FROM alpine:3.24
|
|
|
|
RUN apk add --no-cache attr ca-certificates curl mailcap tree && \
|
|
echo 'hosts: files dns' >| /etc/nsswitch.conf
|
|
|
|
LABEL maintainer="OpenCloud GmbH <devops@opencloud.eu>" \
|
|
org.opencontainers.image.title="OpenCloud" \
|
|
org.opencontainers.image.vendor="OpenCloud GmbH" \
|
|
org.opencontainers.image.authors="OpenCloud GmbH" \
|
|
org.opencontainers.image.description="OpenCloud is a modern file-sync and share platform" \
|
|
org.opencontainers.image.licenses="Apache-2.0" \
|
|
org.opencontainers.image.documentation="https://github.com/opencloud-eu/opencloud" \
|
|
org.opencontainers.image.source="https://github.com/opencloud-eu/opencloud"
|
|
|
|
ENTRYPOINT ["/usr/bin/opencloud"]
|
|
CMD ["server"]
|
|
|
|
COPY --from=build /opencloud/opencloud/bin/opencloud /usr/bin/opencloud
|