docker/slides-notes/Dockerfile

44 lines
925 B
Docker

FROM ghcr.io/linuxserver/baseimage-alpine:3.16
WORKDIR /app
# environment settings
ENV HOME="/app"
ENV NODE_ENV="production"
RUN \
echo "**** install build packages ****" && \
apk --no-cache add \
alpine-base \
nodejs \
npm && \
echo "**** install reveal-notes-server ****" && \
npm install reveal-notes-server && \
echo "**** cleanup ****" && \
rm -rf \
/root/.cache \
/tmp/*
#node node_modules/reveal-notes-server && \
# copy local files
#COPY root/ /
# ports and volumes
EXPOSE 1947
VOLUME /app/slides
RUN ln -s /app/slides/index.html /app/index.html && \
ln -s /app/slides/img /app/img && \
ln -s /app/slides/cache /app/cache && \
ln -s /app/slides/vid /app/vid
#RUN echo hello world > /app/index.html
CMD ["node", "node_modules/reveal-notes-server"]
#ENTRYPOINT ["/init"]
#ENTRYPOINT node node_modules/reveal-notes-server && \