New build mechanism

This commit is contained in:
Valentin Brandl 2019-07-28 21:44:10 +02:00
parent 49f02750b4
commit e805bdd135
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D

View File

@ -1,12 +1,14 @@
FROM node:alpine as frontend FROM node:alpine as frontend
RUN yarn global add elm elm-test RUN yarn global add elm elm-test uglify-js
COPY ./frontend/build.sh ./build.sh
COPY ./frontend/elm.json ./elm.json COPY ./frontend/elm.json ./elm.json
COPY ./frontend/src ./src COPY ./frontend/src ./src
COPY ./frontend/tests ./tests COPY ./frontend/tests ./tests
RUN elm make --optimize src/Main.elm RUN elm-test
RUN ./build.sh
FROM ekidd/rust-musl-builder:stable as backend FROM ekidd/rust-musl-builder:stable as backend