allowing file-upload api to work with write permission (#4221)

This commit is contained in:
Mayank Jobanputra 2023-02-21 12:18:02 +01:00 committed by GitHub
parent d4b822646e
commit c4b98fcccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ RUN addgroup --gid 1001 $SERVICE_NAME && \
# Create a folder for the /file-upload API endpoint with write permissions for the service user only # Create a folder for the /file-upload API endpoint with write permissions for the service user only
RUN mkdir -p /opt/file-upload && chown $SERVICE_NAME:$SERVICE_NAME /opt/file-upload && chmod 600 /opt/file-upload RUN mkdir -p /opt/file-upload && chown $SERVICE_NAME:$SERVICE_NAME /opt/file-upload && chmod 700 /opt/file-upload
# Tell rest_api which folder to use for uploads # Tell rest_api which folder to use for uploads
ENV FILE_UPLOAD_PATH="/opt/file-upload" ENV FILE_UPLOAD_PATH="/opt/file-upload"