mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-24 12:34:10 +03:00
20 lines
405 B
Docker
20 lines
405 B
Docker
FROM node:18.16.0-alpine as front
|
|
|
|
ARG FONTAWESOME_NPM_AUTH_TOKEN
|
|
ARG REACT_APP_API_URL
|
|
ARG REACT_APP_LOGIN_PROVIDER_URL
|
|
|
|
WORKDIR /app/front
|
|
COPY ./front .
|
|
|
|
RUN echo "@fortawesome:registry=https://npm.fontawesome.com/" > .npmrc
|
|
RUN echo "//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}" >> .npmrc
|
|
|
|
|
|
RUN npm install
|
|
RUN npm run build
|
|
|
|
RUN npm install -g serve
|
|
|
|
CMD ["serve", "-s", "build"]
|