This commit is contained in:
23
Dockerfile
23
Dockerfile
@@ -1,13 +1,28 @@
|
||||
FROM ghcr.io/catthehacker/ubuntu:gh-20.04
|
||||
FROM pandoc/latex:3-debian
|
||||
|
||||
USER root
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get upgrade -y
|
||||
RUN apt-get install pandoc nodejs texlive-full -y
|
||||
RUN apt-get install curl -y
|
||||
RUN apt-get clean
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
RUN useradd -m runner
|
||||
|
||||
RUN npm install -g @mermaid-js/mermaid-cli
|
||||
USER runner
|
||||
|
||||
USER gitea-action
|
||||
ENV NVM_DIR /home/runner/.nvm
|
||||
ENV NODE_VERSION 24.15.0
|
||||
|
||||
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash \
|
||||
&& . $NVM_DIR/nvm.sh \
|
||||
&& npm install -g @mermaid-js/mermaid-cli
|
||||
|
||||
ENV NODE_PATH $NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules
|
||||
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
ENTRYPOINT [ "/bin/bash", "-c" ]
|
||||
Reference in New Issue
Block a user