Skip to content

Commit 9b831b6

Browse files
committed
Fix /tmp/pycon permission errors?
1 parent 8b943a0 commit 9b831b6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ ENV LIBRARY_PATH=/lib:/usr/lib LD_LIBRARY_PATH=/lib:/usr/lib
7272

7373
RUN apt-get update -y && apt-get install -y curl
7474

75-
RUN groupadd -r app && useradd -r -g app app && mkdir -p ${FUNCTION_DIR} && chown -R app:app ${FUNCTION_DIR}
75+
RUN groupadd -r app && useradd -r -g app app && mkdir -p ${FUNCTION_DIR} && chown -R app:app ${FUNCTION_DIR} && mkdir -p /tmp/pycon && chown -R app:app /tmp/pycon
7676

7777
COPY --chown=app:app --from=js-stage ${FUNCTION_DIR}/dist/*.html ${FUNCTION_DIR}/custom_admin/templates/astro/
7878
COPY --chown=app:app --from=js-stage ${FUNCTION_DIR}/dist/widgets/*.html ${FUNCTION_DIR}/custom_admin/templates/astro/widgets/

backend/video_uploads/transfer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ def __init__(
5555
self.merged_file = None
5656

5757
def run(self) -> list[str]:
58-
os.makedirs("/tmp/pycon/", exist_ok=True)
59-
6058
self.storage = storages["default"]
6159
self.s3_client = self._get_s3_client()
6260
self.download_link = self.get_download_link()

0 commit comments

Comments
 (0)