CirculartextAI1 / Dockerfile
circulartext's picture
Update Dockerfile
77bb5ac verified
raw
history blame
771 Bytes
# Use your base Docker image from Docker Hub
FROM circulartextapp/circulartextai
# Create a non-root user
RUN adduser --disabled-password --gecos '' appuser
# Set the working directory
WORKDIR /code
# Switch to the appuser
USER appuser
# Copy the requirements file and install dependencies
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the rest of your application files
COPY . .
# Create a directory for storing files and set permissions
RUN mkdir /code/files && chmod 777 /code/files
# Copy the entrypoint script
COPY ./entrypoint.sh /entrypoint.sh
# Give execute permission to the entrypoint script
RUN chmod +x /entrypoint.sh
# Specify the entrypoint
ENTRYPOINT ["/entrypoint.sh"]