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.
26 lines
712 B
26 lines
712 B
FROM node:12.13-alpine
|
|
LABEL maintainer="requarks.io"
|
|
|
|
RUN apk add bash curl git openssh gnupg sqlite --no-cache && \
|
|
mkdir -p /wiki && \
|
|
mkdir -p /logs && \
|
|
chown -R node:node /wiki /logs
|
|
|
|
WORKDIR /wiki
|
|
|
|
COPY --chown=node:node ./build/assets ./assets
|
|
COPY --chown=node:node ./server ./server
|
|
COPY --chown=node:node ./build/server/views ./server/views
|
|
COPY --chown=node:node ./dev/build/config.yml ./config.yml
|
|
COPY --chown=node:node ./dev/docker-common/wait.sh ./wait.sh
|
|
COPY --chown=node:node ./package.json ./package.json
|
|
COPY --chown=node:node ./LICENSE ./LICENSE
|
|
|
|
RUN yarn --production --frozen-lockfile --non-interactive --network-timeout 100000
|
|
|
|
USER node
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["node", "server"]
|