File size: 588 Bytes
16b3c81
44dd441
e5132b5
 
 
f58c1fa
e5132b5
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM circulartextapp/readspaceout

# Set up a new user named "myappuser" with user ID 1000
ARG USER_ID=1000
RUN addgroup --system myappgroup && adduser --system --group myappuser --uid ${USER_ID}

# Set the working directory to /app
WORKDIR /app

# Copy the current directory contents into the container at /app
COPY . .

# Set permissions for the app directory
RUN chown -R myappuser:myappgroup /app && chmod -R 777 /app

# Switch to the "myappuser" user
USER myappuser

# Example CMD (modify as needed)
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]