-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (19 loc) · 610 Bytes
/
Dockerfile
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
FROM node:17.0.1-buster
RUN npm install -g --unsafe-perm [email protected]
RUN npm install -g --unsafe-perm [email protected]
WORKDIR /app
COPY package.json yarn.lock /app/
RUN yarn
COPY spago.dhall packages.dhall ./
COPY src/ src/
COPY test/*.purs test/*.js test/
COPY test/resources/*.xml test/resources/
RUN spago test && spago bundle-app -x
FROM node:17.0.1-alpine3.14
WORKDIR /app
COPY --from=0 /app/package.json /app/yarn.lock ./
RUN yarn --production
COPY --from=0 /app/index.js .
COPY --from=0 /app/index.js.map .
ENV export NTBA_FIX_319=1
ENTRYPOINT ["node", "--enable-source-maps", "index.js"]