mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 05:05:53 +00:00
Merge pull request #403 from mattcen/build-on-arm64
Build Dockerfile on arm64
This commit is contained in:
commit
04da85f463
@ -7,12 +7,16 @@ WORKDIR /home/node/matrix-dimension
|
|||||||
|
|
||||||
RUN mkdir -p /home/node/matrix-dimension
|
RUN mkdir -p /home/node/matrix-dimension
|
||||||
|
|
||||||
|
RUN apk --no-cache add python2 glib-dev make g++ vips-dev libc-dev
|
||||||
|
|
||||||
COPY . /home/node/matrix-dimension
|
COPY . /home/node/matrix-dimension
|
||||||
|
|
||||||
RUN chown -R node /home/node/matrix-dimension
|
RUN chown -R node /home/node/matrix-dimension
|
||||||
|
|
||||||
USER node
|
USER node
|
||||||
|
|
||||||
|
ENV CPATH=/usr/include/glib-2.0:/usr/lib/glib-2.0/include/
|
||||||
|
|
||||||
RUN npm clean-install && \
|
RUN npm clean-install && \
|
||||||
node /home/node/matrix-dimension/scripts/convert-newlines.js /home/node/matrix-dimension/docker-entrypoint.sh && \
|
node /home/node/matrix-dimension/scripts/convert-newlines.js /home/node/matrix-dimension/docker-entrypoint.sh && \
|
||||||
NODE_ENV=production npm run-script build
|
NODE_ENV=production npm run-script build
|
||||||
@ -31,6 +35,10 @@ RUN chown -R node /home/node/matrix-dimension
|
|||||||
|
|
||||||
RUN mkdir /data && chown -R node /data
|
RUN mkdir /data && chown -R node /data
|
||||||
|
|
||||||
|
RUN apk --no-cache add python2 glib-dev make g++ vips-dev libc-dev
|
||||||
|
|
||||||
|
ENV CPATH=/usr/include/glib-2.0:/usr/lib/glib-2.0/include/
|
||||||
|
|
||||||
USER node
|
USER node
|
||||||
|
|
||||||
RUN npm clean-install --production
|
RUN npm clean-install --production
|
||||||
|
Loading…
Reference in New Issue
Block a user