-
Notifications
You must be signed in to change notification settings - Fork 134
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (31 loc) · 870 Bytes
/
Dockerfile
File metadata and controls
36 lines (31 loc) · 870 Bytes
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
FROM webdevops/php-apache:8.4
# 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_20.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