Mbonea commited on
Commit
5600a35
1 Parent(s): 8240ca0

changed permissions

Browse files
App/Transcription/TranscriptionRoutes.py CHANGED
@@ -98,6 +98,7 @@ async def create_file(
98
  user: UserSchema = Depends(get_token_owner),
99
  ):
100
  # Write the file to disk asynchronously
 
101
  try:
102
  async with aiofiles.open(file.filename, "wb") as f:
103
  while contents := await file.read(1024 * 1):
 
98
  user: UserSchema = Depends(get_token_owner),
99
  ):
100
  # Write the file to disk asynchronously
101
+ Upload_dir = ""
102
  try:
103
  async with aiofiles.open(file.filename, "wb") as f:
104
  while contents := await file.read(1024 * 1):
Dockerfile CHANGED
@@ -1,7 +1,13 @@
1
  # Builder stage
2
  FROM python:latest as builder
3
 
 
 
4
  WORKDIR /srv
 
 
 
 
5
 
6
  # Install dependencies and Python packages
7
  RUN apt-get update && apt-get install -y git ffmpeg aria2 \
@@ -11,8 +17,7 @@ COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # Copy the application code
14
- RUN useradd -m -u 1000 user
15
- USER user
16
 
17
  COPY --chown=user . /srv
18
 
 
1
  # Builder stage
2
  FROM python:latest as builder
3
 
4
+ RUN useradd -ms /bin/bash admin
5
+
6
  WORKDIR /srv
7
+ RUN chown -R admin:admin /srv
8
+ RUN chmod 755 /srv
9
+
10
+
11
 
12
  # Install dependencies and Python packages
13
  RUN apt-get update && apt-get install -y git ffmpeg aria2 \
 
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  # Copy the application code
20
+ USER admin
 
21
 
22
  COPY --chown=user . /srv
23