mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-21 02:41:33 +03:00
d2c6a71c9e
* Fix server local build * Build docs locally and for prod --------- Co-authored-by: Charles Bochet <charles@twenty.com>
19 lines
403 B
Docker
19 lines
403 B
Docker
FROM node:18.16.0-alpine as server
|
|
|
|
RUN apk update && apk upgrade && \
|
|
apk add --no-cache bash git openssh && \
|
|
apk add libc6-compat
|
|
|
|
WORKDIR /app/server
|
|
|
|
COPY ../../server/package.json .
|
|
COPY ../../server/package-lock.json .
|
|
RUN npm install
|
|
|
|
COPY ../../server/src/database/schema.prisma ./src/database/schema.prisma
|
|
RUN npx prisma generate
|
|
|
|
COPY ../../server .
|
|
|
|
|
|
CMD ["npm", "run", "start:dev"] |