Compare commits

...

3 Commits

Author SHA1 Message Date
Sajith K
6bc8b4041b
Compat 2022 (#1174)
* Update nginx-template.conf

Update to allow access of private files

* updated node and python versions

* Update frontend.Dockerfile

updated bench build command to remove --production tag for version-13 frappe
2023-07-10 09:24:14 +05:30
Sajith K
3c77d58e59
Compat 2022 (#1170)
* Update nginx-template.conf

Update to allow access of private files

* updated node and python versions
2023-07-06 18:06:32 +05:30
Sajith K
aab7c0cee6
Update nginx-template.conf (#1091)
Update to allow access of private files
2023-03-06 17:05:52 +05:30
3 changed files with 7 additions and 4 deletions

View File

@ -20,7 +20,10 @@ COPY --chown=frappe:frappe . apps/${APP_NAME}
RUN bench setup requirements
# Build static assets, copy files instead of symlink
RUN bench build --production --verbose --hard-link
RUN if [ -z "${ERPNEXT_VERSION##*v14*}" ] || [ "$ERPNEXT_VERSION" = "develop" ]; then \
export BUILD_OPTS="--production"; \
fi \
&& FRAPPE_ENV=production bench build --verbose --hard-link ${BUILD_OPTS}
# Use frappe-nginx image with nginx template and env vars

View File

@ -73,8 +73,8 @@ target "default-args" {
BENCH_REPO = "${BENCH_REPO}"
FRAPPE_VERSION = "${FRAPPE_VERSION}"
ERPNEXT_VERSION = "${ERPNEXT_VERSION}"
PYTHON_VERSION = can(regex("v13", "${ERPNEXT_VERSION}")) ? "3.9.9" : "3.10.5"
NODE_VERSION = can(regex("v13", "${FRAPPE_VERSION}")) ? "14.19.3" : "16.18.0"
PYTHON_VERSION = can(regex("v13", "${ERPNEXT_VERSION}")) ? "3.9.17" : "3.10.12"
NODE_VERSION = can(regex("v13", "${FRAPPE_VERSION}")) ? "14.21.3" : "16.20.1"
}
}

View File

@ -37,7 +37,7 @@ server {
location ~ ^/protected/(.*) {
internal;
try_files /sites/$http_host/$1 =404;
try_files /sites/${FRAPPE_SITE_NAME_HEADER}/$1 =404;
}
location /socket.io {