forked from PhotoboothProject/photobooth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (31 loc) · 869 Bytes
/
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
33
34
35
FROM webdevops/php-apache:8.3
# Adjust LimitRequestLine and
# update and install dependencies
RUN echo "LimitRequestLine 12000" > /opt/docker/etc/httpd/conf.d/limits.conf \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
git \
gphoto2 \
libimage-exiftool-perl \
rsync \
udisks2 \
python3 \
ca-certificates \
curl \
gnupg \
nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy files
WORKDIR /app
COPY . .
RUN chown -R application:application /app
# switch to application user
USER application
# Install and build
RUN git config --global --add safe.directory /app \
&& git submodule update --init \
&& npm install \
&& npm run build