mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-22 11:31:39 +03:00
26 lines
420 B
Docker
26 lines
420 B
Docker
FROM node:18.16.0-alpine as build
|
|
|
|
|
|
ARG REACT_APP_SERVER_BASE_URL
|
|
ARG REACT_APP_SERVER_AUTH_URL
|
|
ARG REACT_APP_SERVER_FILES_URL
|
|
|
|
COPY ./packages/ /app/packages
|
|
|
|
WORKDIR /app/front
|
|
COPY ./front .
|
|
|
|
RUN yarn install
|
|
RUN yarn build
|
|
|
|
COPY ./infra/prod/front/serve.json ./build
|
|
|
|
FROM node:18.16.0-alpine as front
|
|
|
|
WORKDIR /app/front
|
|
COPY --from=build /app/front/build ./build
|
|
|
|
RUN yarn global add serve
|
|
|
|
CMD ["serve", "build"]
|