Simplify infrastructure to one container
This commit is contained in:
16
infra/prod/twenty/Dockerfile
Normal file
16
infra/prod/twenty/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM node:18-alpine as app
|
||||
|
||||
ARG REACT_APP_API_URL
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
WORKDIR /app/front
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
WORKDIR /app/server
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
CMD ["npm", "run", "start:prod"]
|
||||
Reference in New Issue
Block a user