-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
35 lines (28 loc) · 1.25 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
33
34
35
FROM alpine:latest
# Need Perl, Mojolicious, a decent event loop (Alpine supports AnyEvent but not
# libev and Perl::EV, so I use Perl::Event as the implementation). Also need
# IO::Socket::SSL. Fly.io provides the init so we don't need tini.
RUN apk add --no-cache \
perl \
perl-anyevent \
perl-event \
perl-io-socket-ssl \
perl-mojolicious \
zlib # Only here to terminate the list with a small package :)
WORKDIR /opt/navadmin-scanner
# Bare essentials to build and/or run the web app
COPY navadmin-viewer.pl \
check-file-miscoded.pl \
clean-rmks.pl \
navadmin_meta.json \
build-reference-list.pl \
gen-miscoded-files-list \
fix-miscoded-files \
/opt/navadmin-scanner/
COPY NAVADMIN /opt/navadmin-scanner/NAVADMIN/
COPY assets /opt/navadmin-scanner/assets/
COPY modules /opt/navadmin-scanner/modules/
RUN ./gen-miscoded-files-list | ./fix-miscoded-files && rm *miscoded* && ./clean-rmks.pl
RUN ./build-reference-list.pl >cross-refs.json
EXPOSE 3000
CMD ./navadmin-viewer.pl prefork -m production