aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: c94b4253948ba607112f6d676ac83baea3291fb9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM electronuserland/builder:14 as builder

WORKDIR /usr/src/ferdi

COPY package*.json ./
COPY lerna.json ./

# Note: This is being set to bypass the error with missing git repo information for the 'preval-build-info' module
ENV PREVAL_BUILD_INFO_PLACEHOLDERS=true

RUN npm i -g node-gyp@8.0.0 \
    && npm config set node_gyp "$(which node-gyp)" \
    && npx lerna bootstrap

COPY . .

RUN cd recipes && npm i && npm run package && cd ..
RUN npm run build

FROM busybox

WORKDIR /ferdi

COPY --from=builder /usr/src/ferdi/out/* /ferdi/

VOLUME [ "/ferdi-out" ]