Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official Apache Airflow image as the base image
|
| 2 |
+
FROM apache/airflow:2.5.1
|
| 3 |
+
|
| 4 |
+
# Set environment variables for Airflow
|
| 5 |
+
ENV AIRFLOW_HOME=/opt/airflow
|
| 6 |
+
ENV AIRFLOW__CORE__LOAD_EXAMPLES=False
|
| 7 |
+
ENV AIRFLOW__WEBSERVER__PORT=7860
|
| 8 |
+
|
| 9 |
+
# Install additional packages if needed
|
| 10 |
+
# RUN pip install <your-required-packages>
|
| 11 |
+
|
| 12 |
+
# Expose the port for the webserver
|
| 13 |
+
EXPOSE 7860
|
| 14 |
+
|
| 15 |
+
# Copy the entrypoint script
|
| 16 |
+
COPY entrypoint.sh /entrypoint.sh
|
| 17 |
+
RUN chmod +x /entrypoint.sh
|
| 18 |
+
|
| 19 |
+
# Set the entrypoint script
|
| 20 |
+
ENTRYPOINT ["/entrypoint.sh"]
|