circulartext commited on
Commit
5972a0e
1 Parent(s): 068c68b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a suitable base Docker image with necessary dependencies
2
+ FROM circulartextapp/spaceread
3
+
4
+ # Set the working directory to /app
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
+ # Install gosu (adjust the package manager based on your base image)
11
+ RUN apt-get update && apt-get install -y gosu && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Set the entrypoint script as executable
14
+ COPY entrypoint.sh /usr/local/bin/entrypoint.sh
15
+ RUN chmod +x /usr/local/bin/entrypoint.sh
16
+
17
+ # Define the entrypoint script to handle user creation and application startup
18
+ ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]