Skip to content

Commit d385ec1

Browse files
Update Dockerfile
1 parent ed9bd5f commit d385ec1

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ EXPOSE 8080
3030
WORKDIR /app
3131
COPY --from=build-env /app/build/release .
3232

33-
# Run as non-root (built-in 'app' user) and allow writes to required folders
34-
RUN set -eux; \
35-
mkdir -p /app/App_Data /app/wwwroot /app/Plugins; \
36-
chown -R app:app /app/App_Data /app/wwwroot /app/Plugins
33+
RUN chown -R app:app /app/App_Data /app/wwwroot /app/Plugins
3734

3835
USER app
3936

src/Web/Grand.Web.Admin/App_Data/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"HttpsRedirectionHttpsPort": 443,
5959
//Key persistence location you can point to a directory on the local machine, or it can point to a folder on a network share.
6060
//if is null it will use the default directory path - ApplicationPath\App_Data\DataProtectionKeys
61-
"KeyPersistenceLocation": "/App_Data/DataProtectionKeys",
61+
"KeyPersistenceLocation": "",
6262
//Gets or sets a value indicating for cookie auth expires in hours - default 24 * 365 = 8760
6363
"CookieAuthExpires": 8760,
6464
//Gets or sets a value for cookie prefix - any changes will log out all of the customers

src/Web/Grand.Web.Store/App_Data/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"HttpsRedirectionHttpsPort": 443,
5959
//Key persistence location you can point to a directory on the local machine, or it can point to a folder on a network share.
6060
//if is null it will use the default directory path - ApplicationPath\App_Data\DataProtectionKeys
61-
"KeyPersistenceLocation": "/App_Data/DataProtectionKeys",
61+
"KeyPersistenceLocation": "",
6262
//Gets or sets a value indicating for cookie auth expires in hours - default 24 * 365 = 8760
6363
"CookieAuthExpires": 8760,
6464
//Gets or sets a value for cookie prefix - any changes will log out all of the customers

src/Web/Grand.Web.Vendor/App_Data/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"HttpsRedirectionHttpsPort": 443,
5959
//Key persistence location you can point to a directory on the local machine, or it can point to a folder on a network share.
6060
//if is null it will use the default directory path - ApplicationPath\App_Data\DataProtectionKeys
61-
"KeyPersistenceLocation": "/App_Data/DataProtectionKeys",
61+
"KeyPersistenceLocation": "",
6262
//Gets or sets a value indicating for cookie auth expires in hours - default 24 * 365 = 8760
6363
"CookieAuthExpires": 8760,
6464
//Gets or sets a value for cookie prefix - any changes will log out all of the customers

src/Web/Grand.Web/App_Data/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"HttpsRedirectionHttpsPort": 443,
5959
//Key persistence location you can point to a directory on the local machine, or it can point to a folder on a network share.
6060
//if is null it will use the default directory path - ApplicationPath\App_Data\DataProtectionKeys
61-
"KeyPersistenceLocation": "/App_Data/DataProtectionKeys",
61+
"KeyPersistenceLocation": "",
6262
//Gets or sets a value indicating for cookie auth expires in hours - default 24 * 365 = 8760
6363
"CookieAuthExpires": 8760,
6464
//Gets or sets a value for cookie prefix - any changes will log out all of the customers

0 commit comments

Comments
 (0)