forked from mage-ai/mlops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (18 loc) · 851 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM mageai/mageai:alpha
ARG PROJECT_NAME=mlops
ARG MAGE_CODE_PATH=/home/src
ARG USER_CODE_PATH=${MAGE_CODE_PATH}/${PROJECT_NAME}
WORKDIR ${MAGE_CODE_PATH}
COPY ${PROJECT_NAME} ${PROJECT_NAME}
ENV USER_CODE_PATH=${USER_CODE_PATH}
# Install custom Python libraries and dependencies for your project.
RUN pip3 install -r ${USER_CODE_PATH}/requirements.txt
ENV PYTHONPATH="${PYTHONPATH}:${MAGE_CODE_PATH}/${PROJECT_NAME}"
# Installing necessary utilities and Terraform.
# Uncomment the following lines if you want to use Terraform in Docker.
# RUN apt-get update && \
# apt-get install -y wget unzip && \
# wget https://releases.hashicorp.com/terraform/1.8.3/terraform_1.8.3_linux_amd64.zip && \
# unzip terraform_1.8.3_linux_amd64.zip -d /usr/local/bin/ && \
# rm terraform_1.8.3_linux_amd64.zip
CMD ["/bin/sh", "-c", "/app/run_app.sh"]