FROM electronuserland/builder:18-wine

WORKDIR /epb

# using .dockerignore to avoid copying what is not required.
COPY ./ ./

RUN npm install

# build the application for linux and windows.
RUN npm run dist:all

# sleeping to have the container running long enough to copy dist
CMD ["/bin/sh", "-c", "sleep 3m"]