Build container from a different image
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
FROM alpine:3.13.1
|
||||
RUN apk update && apk add --no-cache bash git gcc openssh python3 py3-pip graphviz graphviz-dev musl-dev postgresql-dev python3-dev build-base
|
||||
FROM python:3.10-slim-bullseye
|
||||
RUN apt-get update -y && apt-get install -y --no-install-recommends bash git openssh graphviz graphviz-dev musl-dev postgresql-dev build-base build-essential gcc python3-dev libffi-dev poppler-utils zlib1g-dev libjpeg-dev libssl-dev && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -25,10 +25,10 @@ _git_changed() {
|
||||
[[ -n "$(git status -s)" ]]
|
||||
}
|
||||
|
||||
# PROGRAM
|
||||
echo "Installing dependencies..."
|
||||
pip3 install -U pip wheel pyparsing pydot
|
||||
pip3 install -r $INPUT_PIP_PATH
|
||||
|
||||
echo "Creating data model..."
|
||||
cd $INPUT_PROJECT_PATH
|
||||
python3 manage.py graph_models -a -g -o $INPUT_OUTPUT_PATH
|
||||
|
||||
Reference in New Issue
Block a user