Spaces:
Running
Running
Added Dockerfile
Browse files- .github/ci.yml +0 -0
- Dockerfile +27 -0
.github/ci.yml
ADDED
File without changes
|
Dockerfile
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.9-slim
|
3 |
+
|
4 |
+
# Set environment variables
|
5 |
+
ENV EXAMPLE 1
|
6 |
+
ENV EXAMPLE 2
|
7 |
+
|
8 |
+
# Set the working directory in the container
|
9 |
+
WORKDIR /app
|
10 |
+
|
11 |
+
# Install system dependencies
|
12 |
+
RUN apt-get update \
|
13 |
+
&& apt-get install -y --no-install-recommends gcc \
|
14 |
+
&& rm rf /var/lib/apt/lists/*
|
15 |
+
|
16 |
+
# Install application dependencies
|
17 |
+
COPY requirements.txt /app/
|
18 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
19 |
+
|
20 |
+
# Copy the current directory contents into the container at /app
|
21 |
+
COPY . /app/
|
22 |
+
|
23 |
+
# Expose the port the app runs on
|
24 |
+
EXPOSE 5000
|
25 |
+
|
26 |
+
# Run the application
|
27 |
+
CMD ["python", "app.py"]
|