This repository was archived by the owner on Jul 29, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 449
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (29 loc) · 1.22 KB
/
Dockerfile
File metadata and controls
35 lines (29 loc) · 1.22 KB
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
# serve the demo page of jquery-jeditable
# https://github.com/NicolasCARPi/jquery_jeditable
# use apache + php
FROM php:8.0-apache
# 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="nicolas.carpi@curie.fr" \
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_14.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g documentation \
&& rm -rf /var/lib/apt/lists/* \
&& a2enmod headers
COPY . /var/www/html
RUN ln -s /var/www/html/src /var/www/html/demos/src
COPY ./apache/000-default.conf /etc/apache2/sites-enabled/000-default.conf
COPY ./apache/php.ini /usr/local/etc/php/php.ini
# generate api doc
WORKDIR /var/www/html
RUN documentation build src -f html -o demos/api
EXPOSE 80