-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 755 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 755 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
FROM httpd:2.4-alpine
# Enable necessary Apache modules
RUN sed -i \
-e '/LoadModule substitute_module/s/^#//g' \
-e '/LoadModule filter_module/s/^#//g' \
-e '/LoadModule env_module/s/^#//g' \
/usr/local/apache2/conf/httpd.conf
# Copy your static files
COPY ./dist /usr/local/apache2/htdocs/
# Copy Apache configuration
COPY ./apache-config.conf /usr/local/apache2/conf/extra/apache-config.conf
# Include our custom config
RUN echo "Include conf/extra/apache-config.conf" \
>> /usr/local/apache2/conf/httpd.conf
# Make sure Apache can read environment variables
RUN echo "PassEnv JELLYFIN_SERVER_URL" \
>> /usr/local/apache2/conf/httpd.conf && \
echo "PassEnv JELLYFIN_API_KEY" \
>> /usr/local/apache2/conf/httpd.conf