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.

25 lines
712 B

  1. FROM node:12.13-alpine
  2. LABEL maintainer="requarks.io"
  3. RUN apk add bash curl git openssh gnupg sqlite --no-cache && \
  4. mkdir -p /wiki && \
  5. mkdir -p /logs && \
  6. chown -R node:node /wiki /logs
  7. WORKDIR /wiki
  8. COPY --chown=node:node ./build/assets ./assets
  9. COPY --chown=node:node ./server ./server
  10. COPY --chown=node:node ./build/server/views ./server/views
  11. COPY --chown=node:node ./dev/build/config.yml ./config.yml
  12. COPY --chown=node:node ./dev/docker-common/wait.sh ./wait.sh
  13. COPY --chown=node:node ./package.json ./package.json
  14. COPY --chown=node:node ./LICENSE ./LICENSE
  15. RUN yarn --production --frozen-lockfile --non-interactive --network-timeout 100000
  16. USER node
  17. EXPOSE 3000
  18. CMD ["node", "server"]