-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
36 lines (30 loc) · 1.11 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
36
FROM alpine
# Install dependencies
RUN apk update
RUN apk add openrc nginx sqlite-libs nginx-mod-http-upload-progress openssl bash libsodium
# Expose Ports -- Mostly documentation for later
#EXPOSE 80/tcp
#EXPOSE 443/tcp
#EXPOSE 8080 ##Only for Debug purposes
# Copy necessary files
COPY ./buildFiles/nimstoryfont/nimstoryfont .
COPY ./buildFiles/nginx/nginx_prod.conf /etc/nginx/nginx.conf
COPY ./buildFiles/nimstoryfont/nimstoryfontSettings.json /settings.json
COPY ./buildFiles/nginx/50x.html /usr/share/nginx/html/50x.html
# Setup necessary directories
RUN mkdir -p /run/nginx
RUN mkdir /database
RUN mkdir -p /cert/live/www.aldrune.com
RUN mkdir -p /cert/archive/www.aldrune.com
RUN mkdir /imagemedia
RUN mkdir /tmpfiles
RUN mkdir /db_dumps
# The session_audio directory will be mapped to a directory that also contains a /extended dir. That is an extra volume of Linode for storage
RUN mkdir /session_audio
RUN ln -s /session_audio /audiodownloads
RUN mkdir /frontend
# Mount external directories
#Startup command
COPY ./buildFiles/dockerStartScript.sh .
RUN chmod +x /dockerStartScript.sh
CMD ["/dockerStartScript.sh"]