Spaces:
Sleeping
Sleeping
Commit
·
74e10e4
1
Parent(s):
7783ea3
Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Build the base image
|
| 2 |
+
FROM circulartextapp/spaceread
|
| 3 |
+
|
| 4 |
+
# Create a new user for each instance of the app
|
| 5 |
+
RUN useradd -m -u $UID user
|
| 6 |
+
|
| 7 |
+
# Switch to the new user
|
| 8 |
+
USER user
|
| 9 |
+
|
| 10 |
+
# Set the working directory
|
| 11 |
+
WORKDIR /home/user/app
|
| 12 |
+
|
| 13 |
+
# Copy your app code into the container
|
| 14 |
+
COPY . /home/user/app
|
| 15 |
+
|
| 16 |
+
# Install your app's dependencies
|
| 17 |
+
RUN pip install -r requirements.txt
|
| 18 |
+
|
| 19 |
+
# Run your app
|
| 20 |
+
CMD ["python", "main.py"]
|