archon-electron/Dockerfile
Gregory Ballantine 27bcd97bdc
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Added woodpecker CI config
2022-05-22 13:23:54 -04:00

27 lines
643 B
Docker

# This Dockerfile was created merely to build the app through CI. It might work
# for local builds, but is not guaranteed.
# build the app with Node.js version 16
FROM node:16
# set working directory of the build
WORKDIR /usr/src/app
# install dependencies
RUN apt update && \
apt install -y ruby ruby-dev rpm && \
gem install sass
# make sure node_modules and public exist so we can ensure it's own by the right user
RUN mkdir /usr/src/app/{node_modules,public}
RUN chown -R node /usr/src/app
USER node
RUN npm -g config set user root
RUN npm config set user root
VOLUME /usr/src/app/node_modules
VOLUME /usr/src/app/public