From ce5aa3acc0173b9d389cd677792d9459287b049f Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 14 Dec 2019 22:25:46 -0500 Subject: [PATCH] feat: Dockerfile for arm builds --- dev/build-arm/Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 dev/build-arm/Dockerfile diff --git a/dev/build-arm/Dockerfile b/dev/build-arm/Dockerfile new file mode 100644 index 00000000..da54759b --- /dev/null +++ b/dev/build-arm/Dockerfile @@ -0,0 +1,25 @@ +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"]