forked from aesirxio/bi-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (31 loc) · 698 Bytes
/
Dockerfile
File metadata and controls
43 lines (31 loc) · 698 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
## builder
FROM node:16-alpine AS builder
WORKDIR /app
COPY .git .
COPY nx.json .
COPY package.json .
COPY yarn.lock .
COPY packages packages
RUN apk add --update --no-cache \
make \
g++ \
jpeg-dev \
cairo-dev \
giflib-dev \
pango-dev \
libtool \
autoconf \
automake \
git
RUN yarn install --frozen-lockfile --network-timeout 600000
# Build the app
RUN yarn build
# Bundle static assets
FROM node:16-alpine AS production
WORKDIR /app
# Copy built assets from builder
COPY --from=builder app/packages/aesirx-bi-app/build build
RUN yarn add serve react-inject-env
# Expose port
EXPOSE 3000
ENTRYPOINT npx react-inject-env set && npx serve -s build