File size: 607 Bytes
80ea05b
2d18c9d
44dd441
e5132b5
 
 
 
f87af42
 
 
 
 
 
 
 
e5132b5
f87af42
80ea05b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Use the spaceread base Docker image
FROM circulartextapp/spaceread

# Set the working directory to /app
WORKDIR /app

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

# Install gosu (adjust the package manager based on your base image)
RUN apt-get update && apt-get install -y gosu && rm -rf /var/lib/apt/lists/*

# Set the entrypoint script as executable
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

# Default command to run if the user doesn't provide a command
CMD ["/usr/local/bin/entrypoint.sh", "${USERNAME:-default_user}"]