Skip to content
Snippets Groups Projects
Verified Commit 0e8077cd authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

build: replace make with entrypoint.sh

parent 44c378c8
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ COPY poetry.lock pyproject.toml /app/ ...@@ -13,7 +13,7 @@ COPY poetry.lock pyproject.toml /app/
RUN apt-get update && \ RUN apt-get update && \
apt-get install --yes --no-install-recommends curl gcc graphviz ldap-utils libldap2-dev \ apt-get install --yes --no-install-recommends curl gcc graphviz ldap-utils libldap2-dev \
libmagic1 libsasl2-dev make && \ libmagic1 libsasl2-dev && \
python -m venv ${POETRY_HOME} && \ python -m venv ${POETRY_HOME} && \
pip install --no-cache-dir poetry==1.8.1 && \ pip install --no-cache-dir poetry==1.8.1 && \
poetry install && \ poetry install && \
...@@ -41,6 +41,7 @@ RUN adduser --home /app --no-create-home --system --uid ${AURA_UID} --group app ...@@ -41,6 +41,7 @@ RUN adduser --home /app --no-create-home --system --uid ${AURA_UID} --group app
# since named volumes otherwise create these directories themself as the root # since named volumes otherwise create these directories themself as the root
# user. # user.
mkdir -p /app/site_media /app/static /app/logs && \ mkdir -p /app/site_media /app/static /app/logs && \
chmod +x /app/entrypoint.sh && \
chown -R app:app /app chown -R app:app /app
USER app USER app
...@@ -48,4 +49,4 @@ USER app ...@@ -48,4 +49,4 @@ USER app
# run with gunicorn # run with gunicorn
CMD ["run.prod"] CMD ["run.prod"]
ENTRYPOINT ["make"] ENTRYPOINT ["/app/entrypoint.sh"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment