forked from wikihost-opensource/als
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (29 loc) · 870 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
FROM node:lts-alpine
ADD ui /app
ADD modules/speedtest/speedtest_worker.js /app/public/speedtest_worker.js
WORKDIR /app
RUN npm i && \
npm run build \
&& chmod -R 650 /app/dist
FROM alpine:3
LABEL maintainer="samlm0 <[email protected]>"
RUN apk add --no-cache php81 php81-posix php81-pecl-maxminddb php81-ctype php81-pecl-swoole nginx xz \
iperf iperf3 \
mtr \
traceroute \
iputils \
bind-tools \
bash runuser ttyd shadow sudo \
&& addgroup app \
&& usermod -a -G app root \
&& usermod -a -G app nginx \
&& chown -R root:app /run \
&& chmod -R 770 /run \
&& mkdir /app \
&& chmod 750 /app \
&& chown -R root:app /app \
&& chmod 660 /etc/nginx
ADD --chown=root:app backend/app/ /app/
COPY --chown=root:app --from=0 /app/dist /app/webspaces
RUN sh /app/utilities/setup_env.sh
CMD php81 /app/app.php