init new dags
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -1,13 +1,12 @@
|
||||
FROM apache/airflow:2.7.1
|
||||
|
||||
USER root
|
||||
|
||||
# Membuat folder dan membuka akses selebar-lebarnya (777)
|
||||
RUN mkdir -p /opt/airflow/logs /opt/airflow/dags /opt/airflow/plugins \
|
||||
&& chown -R airflow:root /opt/airflow \
|
||||
&& chmod -R 777 /opt/airflow/logs /opt/airflow/dags /opt/airflow/plugins
|
||||
# Buat folder scripts dan atur izin akses
|
||||
RUN mkdir -p /opt/airflow/scripts
|
||||
# Copy folder scripts dari Git ke container
|
||||
COPY --chown=airflow:root ./scripts /opt/airflow/scripts
|
||||
COPY --chown=airflow:root ./dags /opt/airflow/dags
|
||||
|
||||
USER airflow
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
Reference in New Issue
Block a user