-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 731 Bytes
/
Dockerfile
File metadata and controls
26 lines (18 loc) · 731 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
# Use the official Nginx image as a base
FROM nginx:alpine
# Define a build-time variables
ARG REVEAL_JS_VERSION=5.1.0
# Set the working directory
WORKDIR /usr/share/nginx/html
# Remove any default hosted files
RUN rm -rf ./*
# Install necessary packages to download and extract the tarball
RUN apk add --no-cache curl tar
# Download and unpack Reveal.js into the working directory
RUN curl -L https://github.com/hakimel/reveal.js/archive/refs/tags/${REVEAL_JS_VERSION}.tar.gz | tar xz --strip-components=1
# # Change ownership of directories to support non-root user
# RUN chown -R nginx:nginx /usr/share/nginx/html
# # Switch to non-root user
# USER 101
# Start Nginx in the foreground
CMD ["nginx", "-g", "daemon off;"]