-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (32 loc) · 1.06 KB
/
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
31
32
33
34
35
36
37
ARG NODE_IMAGE=node:20
ARG DEFAULT_VERSION=0.0.0
ARG DEFAULT_REQUEST_CLIENT_MODE=WINDOW
ARG DEFAULT_NODE_ENV=production
ARG DEFAULT_GENERATE_SOURCEMAP=false
ARG DEFAULT_PUBLIC_URL=http://localhost:4000
FROM $NODE_IMAGE as node-image
FROM node-image
ARG DEFAULT_VERSION
ARG DEFAULT_REQUEST_CLIENT_MODE
ARG DEFAULT_NODE_ENV
ARG DEFAULT_GENERATE_SOURCEMAP
ARG DEFAULT_PUBLIC_URL
ENV REACT_APP_VERSION=$DEFAULT_VERSION
ENV PATH=/app/node_modules/.bin:$PATH
ENV REACT_APP_REQUEST_CLIENT_MODE=$DEFAULT_REQUEST_CLIENT_MODE
ENV PUBLIC_URL=$DEFAULT_PUBLIC_URL
ENV REACT_APP_PUBLIC_URL=$DEFAULT_PUBLIC_URL
ENV NODE_ENV=$DEFAULT_NODE_ENV
ENV GENERATE_SOURCEMAP=$DEFAULT_GENERATE_SOURCEMAP
WORKDIR /app
COPY ./package*.json ./
RUN echo 'frontend/Dockerfile'
RUN ["npm", "ci", "--include=dev", "--loglevel", "verbose"]
RUN ["npm", "rebuild", "node-sass", "--sass-binary-name=linux-x64-83"]
COPY tsconfig.json ./tsconfig.json
#COPY config ./config
#COPY scripts ./scripts
COPY public ./public
COPY src ./src
#COPY --from=nor-shared-image /app/shared/src ./src/shared
RUN ["npm", "run", "build"]