Also adding different Dockerfiles for release & prod. This is because in the prod version, we don't want the variable REACT_APP_BASE_URL to be set in the compiled files. This is set by nginx
8 lines
132 B
Docker
8 lines
132 B
Docker
FROM nginx:1.17.9-alpine
|
|
|
|
COPY ./build /var/www/appsmith
|
|
RUN ls -al /var/www/appsmith
|
|
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|