mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
842 B
41 lines
842 B
FROM node:20
|
|
LABEL maintainer="requarks.io"
|
|
|
|
RUN apt-get update && apt-get install -qy --no-install-recommends \
|
|
bash \
|
|
build-essential \
|
|
curl \
|
|
git \
|
|
gnupg \
|
|
openssh-client \
|
|
pandoc \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
RUN mkdir -p /wiki && \
|
|
mkdir -p /logs && \
|
|
mkdir -p /wiki/data/content && \
|
|
chown -R node:node /wiki /logs
|
|
|
|
WORKDIR /wiki
|
|
|
|
COPY --chown=node:node ./assets ./assets
|
|
COPY --chown=node:node ./blocks/dist ./blocks/dist
|
|
COPY --chown=node:node ./server ./server
|
|
COPY --chown=node:node ./dev/build/config.yml ./config.yml
|
|
COPY --chown=node:node ./LICENSE ./LICENSE
|
|
|
|
USER node
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
WORKDIR /wiki/server
|
|
RUN npm ci --foreground-scripts --omit=dev --audit=false --fund=false
|
|
|
|
WORKDIR /wiki
|
|
|
|
VOLUME ["/wiki/data/content"]
|
|
|
|
EXPOSE 3000
|
|
EXPOSE 3443
|
|
|
|
CMD ["node", "server"]
|