File tree 2 files changed +40
-0
lines changed
2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM mageai/mageai:latest
2
+
3
+ ARG PROJECT_NAME=[project_name]
4
+ ARG MAGE_CODE_PATH=/home/mage_code
5
+ ARG USER_CODE_PATH=${MAGE_CODE_PATH}/${PROJECT_NAME}
6
+
7
+ WORKDIR ${MAGE_CODE_PATH}
8
+
9
+ # Replace [project_name] with the name of your project (e.g. demo_project)
10
+ COPY ${PROJECT_NAME} ${PROJECT_NAME}
11
+
12
+ # Set the USER_CODE_PATH variable to the path of user project.
13
+ # The project path needs to contain project name.
14
+ # Replace [project_name] with the name of your project (e.g. demo_project)
15
+ ENV USER_CODE_PATH=${USER_CODE_PATH}
16
+
17
+ # Install custom Python libraries
18
+ RUN pip3 install -r ${USER_CODE_PATH}/requirements.txt
19
+ # Install custom libraries within 3rd party libraries (e.g. DBT packages)
20
+ RUN python3 /app/install_other_dependencies.py --path ${USER_CODE_PATH}
21
+
22
+ ENV PYTHONPATH="${PYTHONPATH}:/home/mage_code"
23
+
24
+ CMD ["/bin/sh" , "-c" , "/app/run_app.sh" ]
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+ services :
3
+ server :
4
+ image : mageai/mageai:latest
5
+ build :
6
+ context : .
7
+ command : mage start default_repo
8
+ environment :
9
+ - ENV=dev
10
+ ports :
11
+ - 6789:6789
12
+ volumes :
13
+ - .:/home/src
14
+ restart : on-failure:5
15
+ stdin_open : true # used for interactive debugging
16
+ tty : true # used for interactive debugging
You can’t perform that action at this time.
0 commit comments