File size: 771 Bytes
9fcdba0
 
 
77bb5ac
 
 
c55fbb8
9fcdba0
 
 
77bb5ac
 
 
9fcdba0
 
 
 
 
 
 
884598d
 
 
c55fbb8
 
 
 
 
 
 
 
77bb5ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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"]