17 lines
376 B
Docker

FROM nginx:alpine
LABEL maintainer="Roger Gonzalez <roger@rogs.me>"
WORKDIR /app
COPY . .
RUN rm /usr/share/nginx/html/* && \
apk add --no-cache emacs git && \
emacs -Q --script build-site.el && \
cp -R ./public/* /usr/share/nginx/html && \
apk del emacs git
EXPOSE 80
# Start Nginx and keep it running in the foreground
CMD ["nginx", "-g", "daemon off;"]