forked from NicolasCARPi/jquery_jeditable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (26 loc) · 1.17 KB
/
Dockerfile
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
# serve the demo page of jquery-jeditable
# https://github.com/NicolasCARPi/jquery_jeditable
# use apache + php
FROM php:7.3-apache-stretch
# select version or branch here
ENV JEDITABLE_VERSION master
LABEL org.label-schema.name="jquery-jeditable demo" \
org.label-schema.description="Run Apache and php to serve jquery-jeditable demo page" \
org.label-schema.url="https://jeditable.elabftw.net" \
org.label-schema.vcs-url="https://github.com/NicolasCARPi/jquery_jeditable" \
org.label-schema.version=$JEDITABLE_VERSION\
org.label-schema.maintainer="[email protected]" \
org.label-schema.schema-version="1.0"
# install npm
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y --no-install-recommends install gnupg \
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g documentation \
&& rm -rf /var/lib/apt/lists/*
COPY . /var/www/html
RUN ln -s /var/www/html/src /var/www/html/demos/src
RUN sed -i -e "s:/var/www/html:/var/www/html/demos:" /etc/apache2/sites-enabled/000-default.conf
# generate api doc
WORKDIR /var/www/html
RUN documentation build src -f html -o demos/api