27 lines
574 B
Docker
Raw Permalink Normal View History

2019-02-28 14:09:53 +01:00
# pull official base image
2024-05-16 18:19:44 +00:00
FROM python:3.8
2019-02-28 14:09:53 +01:00
# set environment varibles
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# set work directory
WORKDIR /usr/src/app
# install dependencies
RUN pip install --upgrade pip
2020-07-28 14:48:21 +02:00
COPY ./requirements.txt /usr/src/app/requirements.txt
RUN pip install -r requirements.txt
2019-02-28 14:09:53 +01:00
# copy project
COPY . /usr/src/app/
# add wait for it
2020-12-04 15:55:11 +01:00
RUN git clone https://github.com/vishnubob/wait-for-it.git
RUN chmod a+x wait-for-it/wait-for-it.sh
2019-02-28 14:09:53 +01:00
# add entry point
2020-07-28 14:48:21 +02:00
COPY ./django-entrypoint.sh django-entrypoint.sh
ENTRYPOINT ["./django-entrypoint.sh"]