Files
ocis/Dockerfile
T

45 lines
1.3 KiB
Docker
Raw Normal View History

2021-11-16 10:52:35 +01:00
# Please use this Dockerfile only if
# you want to build an image from source without
2022-10-24 19:33:21 +02:00
# pnpm and Go installed on your dev machine.
2021-11-16 10:09:21 +01:00
2021-11-16 10:52:35 +01:00
# You can build oCIS using this Dockerfile
# by running following command:
2021-11-16 10:09:21 +01:00
# `docker build -t owncloud/ocis:custom .`
2021-11-16 10:52:35 +01:00
# In most other cases you might want to run the
# following command instead:
# `make -C ocis dev-docker`
# It will build a `owncloud/ocis:dev` image for you
2022-10-24 19:33:21 +02:00
# and use your local pnpm and Go caches and therefore
2022-07-09 12:48:15 -07:00
# is a lot faster than the build steps below.
2021-11-16 10:52:35 +01:00
2025-10-29 11:58:42 +01:00
FROM owncloudci/nodejs:24 AS generate
COPY ./ /ocis/
WORKDIR /ocis/ocis
RUN make ci-node-generate
FROM owncloudci/golang:1.25 AS build
COPY --from=generate /ocis /ocis
WORKDIR /ocis/ocis
2024-10-15 18:20:27 +02:00
RUN make ci-go-generate build ENABLE_VIPS=true
FROM alpine:3.24.2
2026-05-11 12:37:39 +02:00
RUN apk add --no-cache attr ca-certificates curl mailcap tree \
&& apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community "vips=8.18.2-r0" \
&& echo 'hosts: files dns' >| /etc/nsswitch.conf
LABEL maintainer="ownCloud GmbH <devops@owncloud.com>" \
org.label-schema.name="ownCloud Infinite Scale" \
org.label-schema.vendor="ownCloud GmbH" \
org.label-schema.schema-version="1.0"
ENTRYPOINT ["/usr/bin/ocis"]
CMD ["server"]
2020-11-24 08:46:04 +01:00
COPY --from=build /ocis/ocis/bin/ocis /usr/bin/ocis