mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-26 13:42:44 +03:00
chore: fix build command and improve installation steps
This commit is contained in:
parent
24a3a9d828
commit
bba8c592ac
@ -1,5 +1,8 @@
|
|||||||
build: ##
|
build: ##
|
||||||
@docker-compose up --build --force-recreate
|
@docker-compose down
|
||||||
|
docker volume rm dev_twenty_node_modules_front || true
|
||||||
|
docker volume rm dev_twenty_node_modules_server || true
|
||||||
|
docker-compose build
|
||||||
|
|
||||||
up: ##
|
up: ##
|
||||||
@docker-compose up -d
|
@docker-compose up -d
|
||||||
|
@ -5,9 +5,12 @@ RUN apk update && apk upgrade && \
|
|||||||
apk add libc6-compat
|
apk add libc6-compat
|
||||||
|
|
||||||
WORKDIR /app/front
|
WORKDIR /app/front
|
||||||
COPY ../../front .
|
|
||||||
|
|
||||||
RUN export $(xargs <.env)
|
COPY ../../front/package.json .
|
||||||
|
COPY ../../front/package-lock.json .
|
||||||
|
COPY ../../front/.npmrc .
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
COPY ../../front .
|
||||||
|
|
||||||
CMD ["npm", "run", "start"]
|
CMD ["npm", "run", "start"]
|
||||||
|
@ -5,8 +5,12 @@ RUN apk update && apk upgrade && \
|
|||||||
apk add libc6-compat
|
apk add libc6-compat
|
||||||
|
|
||||||
WORKDIR /app/server
|
WORKDIR /app/server
|
||||||
COPY ../../server .
|
|
||||||
|
|
||||||
|
COPY ../../server/package.json .
|
||||||
|
COPY ../../server/package-lock.json .
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
COPY ../../server .
|
||||||
|
|
||||||
|
|
||||||
CMD ["npm", "run", "start"]
|
CMD ["npm", "run", "start"]
|
Loading…
Reference in New Issue
Block a user