Speed_Read_AI / Dockerfile
circulartext's picture
Update Dockerfile
e5132b5
raw
history blame
588 Bytes
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"]