-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d016fb
commit 2942fe0
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
FROM --platform=linux/x86_64 apache/airflow:2.8.4-python3.9 | ||
|
||
USER root | ||
# USER root | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends git | ||
# RUN apt-get update \ | ||
# && apt-get install -y --no-install-recommends git | ||
|
||
# COPY requirements.txt constraints.txt scripts/deps /tmp/work/ | ||
# RUN /tmp/work/deps /tmp/work && rm -rf /tmp/work | ||
# # COPY requirements.txt constraints.txt scripts/deps /tmp/work/ | ||
# # RUN /tmp/work/deps /tmp/work && rm -rf /tmp/work | ||
|
||
# our codes | ||
RUN mkdir -p /bigdata/airlake | ||
COPY --chown=airflow:airflow . /bigdata | ||
COPY requirements.txt / | ||
# # our codes | ||
# RUN mkdir -p /bigdata/airlake | ||
# COPY --chown=airflow:airflow . /bigdata | ||
# COPY requirements.txt / | ||
|
||
ENV PYTHONPATH=$PYTHONPATH:/bigdata/airlake | ||
# ENV PYTHONPATH=$PYTHONPATH:/bigdata/airlake | ||
|
||
USER airflow | ||
COPY --chown=airflow:airflow packages/* /opt/airflow/packages/ | ||
RUN pip install --no-cache-dir -r /requirements.txt | ||
# USER airflow | ||
# COPY --chown=airflow:airflow packages/* /opt/airflow/packages/ | ||
# RUN pip install --no-cache-dir -r /requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters