Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Dockerfile « cypress - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 71c0784c5599d5fc1e100edc76f24dae3db38a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM nextcloud:latest as source

WORKDIR /tmp

RUN set -ex; \
    apt-get update; \
    apt-get install -y --no-install-recommends git;

RUN set -ex; \
    git clone --depth 1 https://github.com/nextcloud/server.git ; \
    git clone --depth 1 https://github.com/nextcloud/viewer server/apps/viewer;

RUN set -ex; \
    cd server; \
    git submodule update --init;

RUN set -ex; \
	cp -r -v /usr/src/nextcloud/config /tmp/server; \
	rm -rf /usr/src/nextcloud/apps/text;

FROM nextcloud:latest

RUN set -ex; \
	rm -rf /usr/src/nextcloud;

COPY --from=source --chown=www-data:www-data /tmp/server /usr/src/nextcloud

RUN set -ex; \
	cd /usr/src/nextcloud; \
	mkdir data; \
    mkdir custom_apps; \
    chown -R www-data:www-data config data apps custom_apps;

ENV NEXTCLOUD_ADMIN_PASSWORD=admin
ENV NEXTCLOUD_ADMIN_USER=admin
ENV SQLITE_DATABASE=sqlite_db

RUN mv /entrypoint.sh /original_entrypoint.sh

COPY --chown=www-data:www-data --chmod=0755 ./entrypoint.sh /entrypoint.sh