aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 881332c19ba55c42d751b9df04d645517d5ec767 (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
27
28
29
30
31
FROM node:14 as builder

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
    && apt-get -y install --no-install-recommends libx11-dev libxext-dev libxss-dev libxkbfile-dev rpm \
    && apt-get autoremove -y \
    && apt-get clean -y \
    && rm -rf /var/lib/apt/lists/*

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 node-gyp@8.0.0 node-sass@5.0.0 \
    && npx lerna bootstrap

COPY . .

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

FROM busybox

WORKDIR /ferdi

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

VOLUME [ "/ferdi-out" ]