-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (32 loc) · 996 Bytes
/
Dockerfile
File metadata and controls
40 lines (32 loc) · 996 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
37
38
39
40
FROM stremio/server:v4.20.16
# Define the build argument for the Stremio Web version
ARG STREMIO_WEB_VERSION=v5.0.0-beta.29
# Install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
bash \
git \
nginx \
openvpn \
apache2-utils \
curl \
unzip \
ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Create directories for Nginx
RUN mkdir -p /run/nginx /etc/nginx/sites
# Add Nginx configuration files
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx/default.conf /etc/nginx/sites/default.conf
# Expose port for Nginx
EXPOSE 80
# Download and unzip the specific version of Stremio Web
WORKDIR /stremio-web
RUN curl -L "https://github.com/stremio/stremio-web/releases/download/${STREMIO_WEB_VERSION}/stremio-web.zip" -o stremio-web.zip \
&& unzip stremio-web.zip \
&& rm stremio-web.zip
# Copy over the entrypoint script
COPY run.sh /run.sh
RUN chmod +x /run.sh
# Set the entrypoint
ENTRYPOINT ["/run.sh"]