# This dockerfile is to build each branch separately (for dev purpouses) FROM node:10 # Create Remix user, don't use root! # RUN yes | adduser --disabled-password remix && mkdir /app # USER remix # #Now do remix stuff # USER remix WORKDIR /home/remix COPY ./ ./ RUN npm ci RUN npm run build FROM nginx:alpine WORKDIR / COPY --from=0 /home/remix/build/ /usr/share/nginx/html/build/ COPY --from=0 /home/remix/index.html /usr/share/nginx/html/index.html COPY --from=0 /home/remix/nginx.conf /etc/nginx/nginx.conf COPY --from=0 /home/remix/assets/ /usr/share/nginx/html/assets/ COPY --from=0 /home/remix/icon.png /usr/share/nginx/html/icon.png COPY --from=0 /home/remix/background.js /usr/share/nginx/html/background.js COPY --from=0 /home/remix/soljson.js /usr/share/nginx/html/soljson.js COPY --from=0 /home/remix/package.json /usr/share/nginx/html/package.json EXPOSE 80