mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-26 04:17:15 +03:00
feat: move install at top to keep layer in cache
This commit is contained in:
parent
b82660667e
commit
eea7671d3e
@ -1,5 +1,8 @@
|
||||
FROM node:18-alpine as server
|
||||
|
||||
COPY ./server/package.json ./
|
||||
RUN npm install
|
||||
|
||||
RUN apk update && apk upgrade && \
|
||||
apk add --no-cache bash git openssh && \
|
||||
apk add libc6-compat
|
||||
@ -7,6 +10,5 @@ RUN apk update && apk upgrade && \
|
||||
WORKDIR /app/server
|
||||
COPY ./server .
|
||||
|
||||
RUN npm install
|
||||
|
||||
CMD ["npm", "run", "start"]
|
||||
|
Loading…
Reference in New Issue
Block a user